Ability to delete multiple messages at once
Hi all,
I suggest to add a button for clean all (or partial?) messages in group : There is not necessarily need to archive some discussions
Thomas
@thomasphilibert so this would purge messages from the channel / group?
Yes exactly ! For exemple, on my rocketchat we have a group called "cool stuff". I thinks is not important to store these messages indefinitely.
Thomas
@thomasphilibert So, it actually removes the messages from the database or just removes them from being visible?
Deleting multiple messages at once could be useful. Maybe we can use the same UI for sending messages to an e-mail:

:+1: this could be very useful
OH. Please make sure the selection mechanism is mobile friendly. There are a lot of problems associated with mapping shfit-click-drag style of select to a mobile touch interface.
Nice feature Marcelo !
@graywolf336 Deleting from the database. A bit like the trash in your PC. If you want free space for one reason or another, it's a simple solution. We do not always need to store messages, no?
Thomas
Unless you need to comply with some compliance out there. So, it should be a setting for the admins.
I am pinging this, because I think we really need to be able to just do a one button "clean" that dumps a channel.
I think what we actually want/need is, in general, a mechanism to easily select multiple messages for subsequently deleting, moving, sending them etc. Maybe using some checkbox-like interface that only shows when the user clicks on a corresponding button somewhere. Or, even better, just by clicking on the message itself. At the moment, the message the mouse is hovering over is only highlighted. Could instead be used for selection if the user also clicks on individual messages.
When I delete a Channel, then recreate a new channel with same name, all the old messages reappear in the new chanel
@RichardFoxworthy That's a whole other issue and not really related to this issue, mind creating a new one if there isn't another out there for that? Thanks!
More on this would be the hability to delete all messages of one user (think about troll). I may be wrong but I remember that kicking a member don't delete his messages.
Are there drawbacks to truncating the rocketchat_message collection in the database? For an admin who didn't want a record of any messages (group or direct) stored for long in the database, would this work as a crude solution to this issue? Would this break other parts of the database and/or Rocket Chat?
I see that there is already a great UI mechanism for selecting multiple messages in the Mail Messages feature. Please use the same UI mechanism to allow anyone with delete-message permission to select multiple messages for deletion.
@MartinSchoeler this ticket as well as #6000 have been marked as duplicate of each other and both closed, has this been resolved elsewhere?
We discussed it and think it would be good to have a button that would nuke all room messages, instead of selecting which ones would be deleted.
There is already a method for this called cleanChannelHistory (here) that can delete all messages in a room. It can be accessed at the API route channels.cleanHistory. A UI option can be also be added that uses this.
I think there is also a need to delete multiple messages in a channel but not all. On my Rocket.Chat instance we have some channels where we discuss things. Some of the messages are important and we want to keep them but several messages could be deleted after some time.
Deleting messages 1 by 1 can be very time-consuming. Hopefully, this gets done in 2020.