delete all children's previews when deleting a folder

please review @PVince81 @karlitschek 
fixes https://github.com/owncloud/core/issues/10484
This might lead to a maximum function nesting level fatal PHP error (i.e. when using XDebug). 

Better move this into a loop.