Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Delete Specific Chat Entries

How on earth is the inability to delete chat entries still not resolved? I've seen 3 archived threads on this very topic. Please - as a paid subscriber - allow DMs to delete specific entries in the chat log. It is too easy to accidentally roll an action or stat while uploading NPCs or monsters into the game - and it spoils the surprise for the players. This *really* should be a simple programming fix and the fact that it hasn't been done yet makes me feel as though the operators of the site are not responsive to the needs of the community.
1640204929
Andreas J.
Forum Champion
Sheet Author
Translator
this seems best to take up in the dedicated suggestion thread(remember to upvote): <a href="https://app.roll20.net/forum/post/1619233/allow-the-gm-to-delete-a-line-in-the-chat-text" rel="nofollow">https://app.roll20.net/forum/post/1619233/allow-the-gm-to-delete-a-line-in-the-chat-text</a>
1640206918
Gold
Forum Champion
Yes +1 to the link Andreas gives in Suggestions. It's been active for 6 years, the last Roll20 Staff comment was last Summer and hinted that this feature is/was.... slated to be developed?&nbsp;&nbsp; <a href="https://app.roll20.net/forum/post/1619233/allow-the-gm-to-delete-a-line-in-the-chat-text/?pageforid=8927743#post-8927743" rel="nofollow">https://app.roll20.net/forum/post/1619233/allow-the-gm-to-delete-a-line-in-the-chat-text/?pageforid=8927743#post-8927743</a> Forthcoming? Hoping for it
1640235710

Edited 1640237268
Oosh
Sheet Author
API Scripter
It *is* actually possible to do this via Firebase in the browser console, though I'm not sure I'd recommend it. The data are unrecoverable, and it's not exactly user-friendly. I'm in two minds about whether this is advisable, since I don't want anyone to wipe their entire chat log, but: &nbsp; const chatMessageRemover = async ( searchString , messagesBack = 10 ) =&gt; { &nbsp; &nbsp; if ( typeof searchString !== 'string' ) return ; &nbsp; &nbsp; let counter = 0 ; &nbsp; &nbsp; await window . Campaign . parentRef . child ( 'chat' ). orderByKey (). limitToLast ( messagesBack ). once ( 'value' , snap =&gt; { &nbsp; &nbsp; &nbsp; snap . forEach ( doc =&gt; { &nbsp; &nbsp; &nbsp; &nbsp; if ( doc . val (). content . indexOf ( searchString ) &gt; - 1 ) { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; doc . ref . remove (); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; counter ++; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; }); &nbsp; &nbsp; }). then (() =&gt; { &nbsp; &nbsp; &nbsp; if ( counter &gt; 0 ) window . alert ( ` ${ counter } document(s) removed. Please refresh your browser to reflect changes.` ); &nbsp; &nbsp; }); &nbsp; } If you paste that into your browser console, you can run it with: chatMessageRemover('Red Dragon') to look through the last 10 messages and remove anything with "Red Dragon" (case sensitive) in the content. It defaults to only 10 messages due to the aforementioned 'wiping your whole chatlog' thing. If you need to search further back, supply a second parameter: chatMessageRemover('Boulder trap', 50); Would search the previous 50 messages and delete those containing "Boulder trap".