Page 1 of 1

Delete all files and folders from a specified date

PostPosted:Mon Feb 14, 2011 5:30 pm
by raviskiran
I want to delete all files and folders that are created in the last 24 hrs? Is there a simple script for doing it? I want to run it as a cron job.

Re: Delete all files and folders from a specified date

PostPosted:Tue Feb 15, 2011 12:08 pm
by jllort
I think in this case a cron tab will be the better option, because with scripting is more complicate build some kind of logic. Other solution is implementing minimal application with webservices. Make some query, and delete some results.