delete all children's previews when deleting a folder

add phpdoc