Delete subfolders but keep root folders.
#
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.
You can download the job configuration and slightly adjust the paths in it for your needs.
Add new attachment
Only authorized users are allowed to upload new attachments.
List of attachments
Kind | Attachment Name | Size | Version | Date Modified | Author | Change note |
---|---|---|---|---|---|---|
png |
Root_folder_contents_cleanup.p... | 246.9 kB | 2 | 05-Dec-2023 05:32 | Halmágyi Árpád | |
xml |
job.XML | 17.3 kB | 1 | 05-Dec-2023 05:32 | Ben Spink |
«
This page (revision-3) was last changed on 05-Dec-2023 05:32 by Halmágyi Árpád
G’day (anonymous guest)
Log in
JSPWiki