# Can't leave the conversation channel Error: Amity SDK (400300):

**URL:** <https://forum.social.plus/t/cant-leave-the-conversation-channel-error-amity-sdk-400300/1519>\
**Category:** TS SDK\
**Created:** [October 31, 2024, 5:13pm UTC](https://forum.social.plus/t/cant-leave-the-conversation-channel-error-amity-sdk-400300/1519 "2024-10-31T17:13:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anser786](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@anser786](https://forum.social.plus/u/anser786)\
**Post date:** [October 31, 2024, 5:13pm UTC](https://forum.social.plus/t/cant-leave-the-conversation-channel-error-amity-sdk-400300/1519/1 "2024-10-31T17:13:06Z")

</div>

Hey I use this code for leaveing but i face this error  
const didLeaveChannel = await ChannelRepository.leaveChannel(channel?.channelId);

error: message:Can’t leave the conversation channel

I created this channel to chat someone previously  
now i want to leave this channel  
this channel have two users

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [November 1, 2024, 7:42am UTC](https://forum.social.plus/t/cant-leave-the-conversation-channel-error-amity-sdk-400300/1519/2 "2024-11-01T07:42:49Z")

</div>

Hello @anser786 , The error occurs because conversation channels (one-on-one chats) cannot be left using the SDK. This limitation is why you are receiving the “Can’t leave the conversation channel” message.

For further information, please refer to the [Amity SDK Channel Documentation](https://docs.amity.co/amity-sdk/chat/channels#conversation).

Feel free to reach out if you need additional assistance.

---

<div class="post-metadata">

**Author:** ![anser786](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@anser786](https://forum.social.plus/u/anser786)\
**Post date:** [November 1, 2024, 1:02pm UTC](https://forum.social.plus/t/cant-leave-the-conversation-channel-error-amity-sdk-400300/1519/3 "2024-11-01T13:02:24Z")

</div>

Thanks for your support
