<< Back

Find And Delete Directories Over Certain Age

Posted on Thursday 27th February 2020

The following command finds all directories in current directory and checks if the drectory was created over 10 mins ago and deletes.

  find . -type d -cmin +10 -delete