# Deleting the matches and chat rooms

**URL:** <https://forum.heroiclabs.com/t/deleting-the-matches-and-chat-rooms/569>\
**Category:** Local Setup\
**Created:** [March 18, 2020, 12:50pm UTC](https://forum.heroiclabs.com/t/deleting-the-matches-and-chat-rooms/569 "2020-03-18T12:50:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stombee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/stombee/32/182_2.png) [@stombee](https://forum.heroiclabs.com/u/stombee)\
**Post date:** [March 18, 2020, 12:50pm UTC](https://forum.heroiclabs.com/t/deleting-the-matches-and-chat-rooms/569/1 "2020-03-18T12:50:03Z")

</div>

Is it possible to delete a chat room with the messages sent in that room. Or is it necessary?  
Another question is; Is it also necessary/possible to delete the matches created somehow, when we are done with them.

Sorry if the answer is already in the documents and Thanks for your help in advance.

---

<div class="post-metadata">

**Author:** ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)\
**Post date:** [March 18, 2020, 2:15pm UTC](https://forum.heroiclabs.com/t/deleting-the-matches-and-chat-rooms/569/2 "2020-03-18T14:15:14Z")

</div>

> Is it possible to delete a chat room with the messages sent in that room. Or is it necessary?

@stombee All chat channels are created on demand but chat messages are stored if the channel is marked as persistent when joined. Whether you want to delete chat messages or not really depends on the game design. If you intend for chat to be between a group of users that disappears when they leave don’t join it with `persistent=true`.

[https://heroiclabs.com/docs/social-realtime-chat/#persistence-and-message-history](https://heroiclabs.com/docs/social-realtime-chat/#persistence-and-message-history)

> Is it also necessary/possible to delete the matches created somehow, when we are done with them.

Multiplayer matches (both authoritative and relayed) are created on demand as well. No data is stored unless you intentionally store data in your match logic.

[https://heroiclabs.com/docs/gameplay-multiplayer-server-multiplayer/#concepts](https://heroiclabs.com/docs/gameplay-multiplayer-server-multiplayer/#concepts)
