Skip to content

Deleting Chat Room Logs +30 day crontab #7228

@waveyuk

Description

@waveyuk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions