Delete files older than X days

schedule
2026-01-18 | 08:12h
update
2026-02-05 | 00:22h
person
Damian Ventura
domain
new.tutorialphp.net
Delete files older than X days

For example, to delete files older than 30 days

1
find /path/to/the/files* -mtime +30 -type f -exec rm {} \;
Advertisement

Imprint
Responsible for the content:
new.tutorialphp.net
Privacy & Terms of Use:
new.tutorialphp.net
Mobile website via:
WordPress AMP Plugin
Last AMPHTML update:
05.02.2026 - 00:22:46
Privacy-Data & cookie usage: