# How to expel all attenders

**URL:** <https://devforum.zoom.us/t/how-to-expel-all-attenders/74461>\
**Category:** Meeting SDK\
**Created:** [August 18, 2022, 6:34am UTC](https://devforum.zoom.us/t/how-to-expel-all-attenders/74461 "2022-08-18T06:34:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VideoPro](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/videopro/32/40603_2.png) [@VideoPro](https://devforum.zoom.us/u/VideoPro)\
**Post date:** [August 18, 2022, 6:34am UTC](https://devforum.zoom.us/t/how-to-expel-all-attenders/74461/1 "2022-08-18T06:34:44Z")

</div>

Hi, engineers  
I wondered how to expel all attenders with regular function. I found only one way that is with function of “expeluser(userid)”, and put the function in a cycle of all participants list . but it always can not clear completely. I must execute my way more times till the attenders are expelled. Is there not a function just like “ExpelAllUsers” to solve it?  
How should I do in code?

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [August 19, 2022, 8:38pm UTC](https://devforum.zoom.us/t/how-to-expel-all-attenders/74461/2 "2022-08-19T20:38:13Z")

</div>

@VideoPro,

Great question! To start, can you share which version of the SDK you are using?

---

<div class="post-metadata">

**Author:** ![VideoPro](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/videopro/32/40603_2.png) [@VideoPro](https://devforum.zoom.us/u/VideoPro)\
**Post date:** [August 22, 2022, 1:07am UTC](https://devforum.zoom.us/t/how-to-expel-all-attenders/74461/3 "2022-08-22T01:07:42Z")

</div>

Thanks for your reply . I am using major version of 5.10 at present . But There is no function of “ExpelAllUsers” in all of “Meeting SDK” versions.
