added iterative deletion of files