# Delete channels or users by custom field

**URL:** <https://community.sendbird.com/t/delete-channels-or-users-by-custom-field/1705>\
**Category:** JavaScript\
**Tags:** chatsdk\
**Created:** [February 16, 2021, 4:24am UTC](https://community.sendbird.com/t/delete-channels-or-users-by-custom-field/1705 "2021-02-16T04:24:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcheab](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@jcheab](https://community.sendbird.com/u/jcheab)\
**Post date:** [February 16, 2021, 4:24am UTC](https://community.sendbird.com/t/delete-channels-or-users-by-custom-field/1705/1 "2021-02-16T04:24:08Z")

</div>

Any batch delete (channels and users )function by some custom fields (maybe in the meta) available to us?  
currently we have a groupid appended to each channels and users which are belongs to that group.

The usecase is when we delete the group, all channels and group members will be deleted as well.

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [February 16, 2021, 2:06pm UTC](https://community.sendbird.com/t/delete-channels-or-users-by-custom-field/1705/2 "2021-02-16T14:06:37Z")

</div>

Hi @jcheab,

We don’t currently have any batch delete methods available.You would simply loop through an array of channelURLs that you’d like to delete.

Thanks,  
Tyler
