UPOINT:: CGI Scripts: FAQ

Title: @1 Auto Delete: Script installation
Steps of installing the script.

• If you want to delete files in only ONE (1) folder, use the script under the folder "single-folder". If you want to delete files in more than one folder, use the script under the folder "multi-folder".

• You can use crontab to execute this script automatically at the schedule you fixed. Or you can execute it from a browser.

• Please note that the files will be deleted even if you chmod the files permission to read only.

• By default, all files of all age are deleted in the following 4 folders. If you have more folders to delete, simply add more paths to the folders and set the age using the formats $dirX and $ageX where X is a number. Then duplicate the section between "Begin deleting" and "Finished deleting" below and modify the $dirX and $ageX accordingly.

• To delete files which are older than 30 days, change $ageX to 30.

• Please make sure this script is not located inside these folders or it will be deleted too.

  Powered by Document Publisher