Deleting attached files from the server older than a certain time


Hello everyone

Tell me, how can I configure the storage of attached files until a certain date? For example, no more than 6 months, after which they would be deleted from the server (and it would no longer be possible to view it in the chat). Is there such a tool in the product or how would it be possible to organize such a thing yourself?

Server Setup Information

  • Version of Rocket.Chat Server: 3.18.3
  • Operating System: Ubuntu 18.04.6 LTS


There is a Retention Policy feature that does it:

1 Like

Thanks! It worked! Deleted files that we didn’t need

1 Like