Delete directories older than 90 days

21 January 2010

find /var/log/hostdb/* -type d -mtime +90 -exec rm -rf {} ;

-type d only look at directories, f would be files -mtime +90 modified time greater than 90 days ago