Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Ability to delete multiple messages at once

Open thomasphilibert opened this issue 10 years ago • 20 comments

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 avatar Jan 12 '16 08:01 thomasphilibert

@thomasphilibert so this would purge messages from the channel / group?

geekgonecrazy avatar Jan 12 '16 17:01 geekgonecrazy

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 avatar Jan 13 '16 07:01 thomasphilibert

@thomasphilibert So, it actually removes the messages from the database or just removes them from being visible?

graywolf336 avatar Jan 21 '16 20:01 graywolf336

Deleting multiple messages at once could be useful. Maybe we can use the same UI for sending messages to an e-mail:

selectmessages

marceloschmidt avatar Feb 04 '16 19:02 marceloschmidt

:+1: this could be very useful

geekgonecrazy avatar Feb 04 '16 19:02 geekgonecrazy

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.

Sing-Li avatar Feb 04 '16 19:02 Sing-Li

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

thomasphilibert avatar Feb 04 '16 23:02 thomasphilibert

Unless you need to comply with some compliance out there. So, it should be a setting for the admins.

graywolf336 avatar Feb 04 '16 23:02 graywolf336

I am pinging this, because I think we really need to be able to just do a one button "clean" that dumps a channel.

benmcnelly avatar Feb 23 '16 18:02 benmcnelly

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.

andreas-bulling avatar Mar 22 '16 13:03 andreas-bulling

When I delete a Channel, then recreate a new channel with same name, all the old messages reappear in the new chanel

RichardFoxworthy avatar Apr 09 '16 00:04 RichardFoxworthy

@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!

graywolf336 avatar Apr 11 '16 04:04 graywolf336

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.

nemolivier avatar May 24 '16 15:05 nemolivier

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?

mddvul22 avatar Jul 06 '16 19:07 mddvul22

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.

harrv avatar Jun 07 '17 15:06 harrv

@MartinSchoeler this ticket as well as #6000 have been marked as duplicate of each other and both closed, has this been resolved elsewhere?

jvacek avatar Apr 03 '18 14:04 jvacek

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.

marceloschmidt avatar Apr 19 '18 14:04 marceloschmidt

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.

c0dzilla avatar Apr 19 '18 16:04 c0dzilla

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.

prohde avatar Apr 21 '18 08:04 prohde

Deleting messages 1 by 1 can be very time-consuming. Hopefully, this gets done in 2020.

ugzv avatar Apr 03 '20 09:04 ugzv