USA
800 691 9120
UK
01225 704844
We use cookies on our website to analyze website usage and to help secure the website against misuse. Advertising and functional cookies are not used in our site or our web application products.
By clicking “Accept Essential Cookies Only”, you consent to us placing these cookies.
Delete files older than a specified number of days from a folder
Scans the specified folder and deletes any files older than the given number of days, optionally filtering by a wildcard pattern. Useful for automatic housekeeping of log or import folders.
| Parameter | Description |
|---|---|
| cmd | Folder path to delete files from |
| Argument 0 | Age threshold in days; files older than this will be deleted |
| Argument 1 | Wildcard file filter (e.g. "*.log"); leave blank for all files |
DeleteOldFiles "Folder path to delete files from", "Age threshold in days; files older than this will be deleted", "Wildcard file filter (e.g. "*.log"); leave blank for all files"