REMold.php will checks for old files/directories and deletes them, it will also check for the disk usage of a current path, if the usage is higher then wanted the script will delete all files or directories that are older then a given time span.
Useful for working with Directadmin’s backups directories for removing old backups automatically. The script will check the given path disk usage and delete older files untill the disk usage limit gained.
Tested on Debian/Ubuntu.
Update your crontab to run this script daily.