# How to disable leaving a channel?

**URL:** <https://community.sendbird.com/t/how-to-disable-leaving-a-channel/6977>\
**Category:** Sendbird Chat UIKit\
**Created:** [April 5, 2023, 9:11pm UTC](https://community.sendbird.com/t/how-to-disable-leaving-a-channel/6977 "2023-04-05T21:11:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephen\_Grinich](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/stephen_grinich/32/3852_2.png) [@Stephen\_Grinich](https://community.sendbird.com/u/Stephen_Grinich)\
**Post date:** [April 5, 2023, 9:11pm UTC](https://community.sendbird.com/t/how-to-disable-leaving-a-channel/6977/1 "2023-04-05T21:11:51Z")

</div>

**[Problem/Question]**  
I am creating channels with the API, and I would not like a user to be able to leave the channel.

how can I disable this functionality?

I tired hiding the div element but I couldn’t get that to work

* * *

// If problem, please fill out the below. If question, please delete.  
**[UIKit Version]**  
// What version of the SDK are you using?

**[Reproduction Steps]**  
// Please provide reproduction steps and, if possible, code snippets.

 ![Screen Shot 2023-04-05 at 2.10.06 PM](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/5/5a2328046f71e2129a7664b60808d602ace20f5c.png)

---

<div class="post-metadata">

**Author:** ![sardorbek.numonov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sardorbek.numonov/32/697_2.png) [@sardorbek.numonov](https://community.sendbird.com/u/sardorbek.numonov)\
**Post date:** [April 10, 2023, 5:21am UTC](https://community.sendbird.com/t/how-to-disable-leaving-a-channel/6977/2 "2023-04-10T05:21:16Z")

</div>

Hi @Stephen_Grinich  
You can override the CSS class and make it display: none in ‘overrides.css’;.

```auto
.sendbird-channel-preview .sendbird-channel-preview__action {
  display: none;
}

```

Then import ‘./overrides.css’ before loading the UI.

---

<div class="post-metadata">

**Author:** ![Stephen\_Grinich](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/stephen_grinich/32/3852_2.png) [@Stephen\_Grinich](https://community.sendbird.com/u/Stephen_Grinich)\
**Post date:** [April 10, 2023, 5:10pm UTC](https://community.sendbird.com/t/how-to-disable-leaving-a-channel/6977/3 "2023-04-10T17:10:54Z")

</div>

Thanks! Worked perfectly.
