I would use one of the many read file names in folder routines that can be found in this forum and once you have read the file name I would then delete the file. You could also read and store the file names into a list, once you have finished populating the list you have all the file names that you can then delete, there are plenty of ways to do what you are looking for...