# I need help to delete a private channel or entirely delete the private messages

**URL:** <https://forum.heroiclabs.com/t/i-need-help-to-delete-a-private-channel-or-entirely-delete-the-private-messages/4321>\
**Category:** Client Libraries\
**Tags:** sdk-unity\
**Created:** [September 11, 2023, 6:42am UTC](https://forum.heroiclabs.com/t/i-need-help-to-delete-a-private-channel-or-entirely-delete-the-private-messages/4321 "2023-09-11T06:42:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aliakbarm534](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/aliakbarm534/32/1716_2.png) [@aliakbarm534](https://forum.heroiclabs.com/u/aliakbarm534)\
**Post date:** [September 11, 2023, 6:42am UTC](https://forum.heroiclabs.com/t/i-need-help-to-delete-a-private-channel-or-entirely-delete-the-private-messages/4321/1 "2023-09-11T06:42:58Z")

</div>

Is there any function to delete a private channel or purge all private messages?

---

<div class="post-metadata">

**Author:** ![tom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/tom/32/676_2.png) [@tom](https://forum.heroiclabs.com/u/tom)\
**Post date:** [September 12, 2023, 11:59am UTC](https://forum.heroiclabs.com/t/i-need-help-to-delete-a-private-channel-or-entirely-delete-the-private-messages/4321/2 "2023-09-12T11:59:11Z")

</div>

Hi @aliakbarm534,

You can remove private messages via the Nakama console either individually (1) or in bulk (2).

 ![image](https://us1.discourse-cdn.com/flex020/uploads/heroiclabs/original/2X/c/c89cb926cdec0b8701bb66e7fc0ac5dac62a987c.png)

You can also remove chat messages via the client or server.

> **[Function Reference](https://heroiclabs.com/docs/nakama/server-framework/go-runtime/function-reference/#ChannelMessageRemove)**
>
> This page lists all functions available within Nakama's Go runtime, with their respective parameters and corresponding code samples.

---

<div class="post-metadata">

**Author:** ![aliakbarm534](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/aliakbarm534/32/1716_2.png) [@aliakbarm534](https://forum.heroiclabs.com/u/aliakbarm534)\
**Post date:** [September 12, 2023, 4:37pm UTC](https://forum.heroiclabs.com/t/i-need-help-to-delete-a-private-channel-or-entirely-delete-the-private-messages/4321/3 "2023-09-12T16:37:08Z")

</div>

So in summary I must have a delete rpc function to be called via client?

---

<div class="post-metadata">

**Author:** ![tom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/tom/32/676_2.png) [@tom](https://forum.heroiclabs.com/u/tom)\
**Post date:** [September 12, 2023, 4:59pm UTC](https://forum.heroiclabs.com/t/i-need-help-to-delete-a-private-channel-or-entirely-delete-the-private-messages/4321/4 "2023-09-12T16:59:33Z")

</div>

That is just one option. Your other options are:

- Manual deletion via the Nakama console
- Call the `RemoveChatMessageAsync` function directly from the client, passing in the appropriate message IDs.
- Call `ChannelMessageRemove` on the server, either via an RPC or some other mechanism where appropriate.
