Delete files on spaces when files are older than X days

December 10, 2017 2.3k views
Ubuntu 16.04 Storage

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 with min-age and put it in cronjob.

  • Is this the solution as of today or is there a feature to add an expiry date/time? Thanks!

Have another answer? Share your knowledge.