-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Deleting Chat Room Logs +30 day crontab #7228
Copy link
Copy link
Closed
Description
I've looked to see if anyone has come up with a solution for this.
I would like to be able to run a crontab job which deletes any messages from any room which are older than 30 days. Is this at all possible? My concern is that the Mongo database will quickly fill with messages and cause the server to run out of disk space on active channels. I've seen posts about using the API but it isn't clearly explained how to achieve this. Our Rocket Chat is running in a Snap environment.
Thanks
Rocket.Chat Version: 0.56.0
Running Instances: 1
DB Replicaset OpLog: Enabled
Node Version: 4.8.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels