title: Automatically delete files from webserver
body: <p>I need to delete files from a directory in my web-server and I need some script to do it automatic. And there is few more conditions which need to be fulfilled.</p>
  
  <ul>
  <li>It has to clean the directory  then total file size exceeds some certain limit for example 1,5GB
  <li>That files would be deleted every 24 hours.
  <li>New files like 10 ir 20 mins old would not be deleted
  <li>It would be just awesome if all of the conditions above would be work at the same time. 
  </ul>
  
  <p>For deleting files I was thinking of some kind of corn task but I do not know a thing about them so it is tricky for me. <br/>
  To delete files then a certain limit is reached I was thinking that some kind of PHP script my help. May be there is a library meant for these things.<br/>
  Any way I will be very happy for any kind of help. May be I just need some fresh thoughts to come up with a right keyword for google ;P<br/></p>
  
  <p>EDIT: My server runs on linux.</p>