Use find command to find files that are older than 30 days and set `-delete` flag to removed any files found by that query. ```bash find * -mtime +30 -delete ``` ### See also 1. [[How to find the biggest files in directory?]] ### Reference 1.