This example finds all the root home folders in a particular location.  Then one by one looks inside of them to find old files to be deleted…but keeps the parent home folder.  To do this it uses a trick to export to a text file the list of root folder names, then reads that back in and uses that list to process each one, one at a time.

[attachments|folder_monitor.png]

[attachments|step0.png]

[attachments|step1.png]

[attachments|step2.png]

[attachments|step3.png]

[attachments|step4.png]

[attachments|step5.png]

[attachments|step6.png]

[attachments|step7.png]