This can be done easily as shown:

*find /tmp/ -mtime +1 -exec rm {} \;

Change +1 to the number of days old you want the files to be before deletion
*

Reply via email to