Rocket.chat: Delete Direct Messages Rooms?

Created on 4 Jun 2017  路  11Comments  路  Source: RocketChat/Rocket.Chat

Rocket.Chat Version: 0.56.0
Running Instances: 1
DB Replicaset OpLog:
Node Version:

Delete Direct Message rooms command?

Is there a way to delete all the direct message rooms created in the database? We have an active site using RC, and when we log into the Admin Panel > Rooms ....there are literally thousands of direct message rooms created so we want a way to purge these and delete them from the database and RC server.

app settings need more info

Most helpful comment

@geesper

Thanks for the reply. I would be looking ideally for something we can control from the admin panel so we can pick and choose and it would be more useful to everyone. But if not i would say to have them deleted for 1) once the user closes it 2) one that hasnt had messages for 2 days or so.

All 11 comments

It looks like there may be a way to do this through the api. What criteria are you looking for to delete these DM channels?

For example, are you hoping to delete all DM rooms for deactivated accounts? Ones that haven't had messages for 30 days?

@geesper

Thanks for the reply. I would be looking ideally for something we can control from the admin panel so we can pick and choose and it would be more useful to everyone. But if not i would say to have them deleted for 1) once the user closes it 2) one that hasnt had messages for 2 days or so.

@WebSavvyGuy I too am looking for the same as you. Don't want the server being littered with old, no longer used, DM's :)

Yes, i think alot of people would like this and if someone can share what to do, that would help a lot of people out.

Same here :) looking for this option to delete unwanted or un-used direct messages that are older than few days. We are not facebook to keep the whole conversation inside a single server. We need something to delete old messages and keep the server fast and active for realtime chatters.

o/ guys, just looking for a way to close (not hide!) a Direct Message on the Android 6.0 client.

I had been directed here from #support but it seems that this is a different kind of thread; nevertheless, is this possible?..

Tap-and-hold produces the little "eye" icon to hide the Direct Message, however it has been opened by mistake - and it's not needed! :)

Screenshot @https://image.ibb.co/myPmpk/Screenshot_20170725_233048.png

Well, hope this helps someone.
on the DM:

Open Menu
Choose Room Info
Choose Edit
Choose Delete

And done!

we have a prune messages feature already, does that solves your issue? you can define for how long messages will be saved, and you can define different params for public channels, private channels and DMs

Prune messages can only be used as admin (or with special permission, but than this user can do this with any rooms even he is not owner of it).

There is no way to delete direct message rooms as normal user.

right @Perflyst .. the main issue though is asking how to do purge all DMs from a server. please feel free to open an issue request what you just described.

I'll be closing this one in the meantime.

Why is this post simply closed? Is there already a solution?

How can we ensure in the EU that DNs can be deleted by the respective user?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

antn89 picture antn89  路  3Comments

engelgabriel picture engelgabriel  路  3Comments

mattlin picture mattlin  路  3Comments

sta-szek picture sta-szek  路  3Comments

Buzzele picture Buzzele  路  3Comments