Delete files on spaces when files are older than X days

December 10, 2017 703 views
Storage Ubuntu 16.04

Hi Guys,

Since it's not yet possible to add an expiry date/time with spaces when you upload a file.
What's the best way to automatically delete all files older than X days/weeks/months?

1 Answer

Hi! You can use https://rclone.org with min-age and put it in cronjob.

Have another answer? Share your knowledge.