Delete files older than x many days Ubuntu Terminal
To delete files older than 'x' many days, you can execute the following command in the terminal: find /path/to/ -type f -mtime +7 -name '*.zip' -execdir rm -- '{}' \; The type -f indicates that you would only like to delete files.