How to delete a large number of messages?

Hi,

we have tested integration of Rocket chat into icinga2.
So instead of mailing notification about events everything was send
to rocket chat. It works very well, however there are now many messages
in this room.

When we try to delete messages, only a small amount (~2000) can be deleted at once.

Even deleting the room is not working.

So how can we delete 100.000 or more messages at once ?

Server Setup Information

  • Version of Rocket.Chat Server: 6.4.2
  • Operating System: ubuntu 22.04
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: 14.21.2
  • MongoDB Version: 5.0.15
  • Proxy: caddy
  • Firewalls involved: -

You are free to log into mongoDB and remove the messages there. The only limit to that approach are your mongoDB skills.