# How do I delete all messages from a specific user in a group channel?

**URL:** <https://community.sendbird.com/t/how-do-i-delete-all-messages-from-a-specific-user-in-a-group-channel/7415>\
**Category:** Miscellaneous\
**Tags:** group-channel, chatsdk\
**Created:** [May 25, 2023, 8:30am UTC](https://community.sendbird.com/t/how-do-i-delete-all-messages-from-a-specific-user-in-a-group-channel/7415 "2023-05-25T08:30:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mooon](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@mooon](https://community.sendbird.com/u/mooon)\
**Post date:** [May 25, 2023, 8:30am UTC](https://community.sendbird.com/t/how-do-i-delete-all-messages-from-a-specific-user-in-a-group-channel/7415/1 "2023-05-25T08:30:07Z")

</div>

I attempted to delete all of a user’s messages by following the process below:

1. Retrieve the list of all messages in a channel
2. Filter by user ID to obtain a list of message IDs
3. Repeatedly call the delete API

However, starting with step 1, it didn’t work properly. For example, suppose there are 400 messages. I tried to fetch 200 messages at a time using the next limit, but the pagination did not work.

Please provide a solution.

---

<div class="post-metadata">

**Author:** ![Suhirtha\_Ayyappan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/suhirtha_ayyappan/32/3983_2.png) [@Suhirtha\_Ayyappan](https://community.sendbird.com/u/Suhirtha_Ayyappan)\
**Post date:** [June 13, 2023, 11:45am UTC](https://community.sendbird.com/t/how-do-i-delete-all-messages-from-a-specific-user-in-a-group-channel/7415/3 "2023-06-13T11:45:32Z")

</div>

Hi @mooon,

Welcome to Sendbird Community — **thanks for contributing!**

Could you let me know which development platform (i.e. Android/iOS/Javascript) are you using for this?
