# Remove existing participant in web sdk

**URL:** <https://devforum.zoom.us/t/remove-existing-participant-in-web-sdk/46714>\
**Category:** Web\
**Created:** [March 27, 2021, 12:17am UTC](https://devforum.zoom.us/t/remove-existing-participant-in-web-sdk/46714 "2021-03-27T00:17:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![digix.sameera](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/digix.sameera/32/23747_2.png) [@digix.sameera](https://devforum.zoom.us/u/digix.sameera)\
**Post date:** [March 27, 2021, 12:17am UTC](https://devforum.zoom.us/t/remove-existing-participant-in-web-sdk/46714/1 "2021-03-27T00:17:27Z")

</div>

I want to remove exsisitng zoom meeting participant (After Logged in to the zoom meeting ) using this code. but it doesn’t work

```
   if (isValidAuthorizedUser === "false" || isValidCourseEnrollment === "false" || hasUnpaidInvoices === "true") {
                    var userId = data.userId;
                    console.log("Removed Participant");
                    //Remove Participant User
                    ZoomMtg.expel({
                        userId: userId
                    });
                }

```

 ![y1](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/b/eb73b73d1fc7f1ceb6f8d4b86ee8736b25a1bc74.png)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [March 29, 2021, 5:59pm UTC](https://devforum.zoom.us/t/remove-existing-participant-in-web-sdk/46714/2 "2021-03-29T17:59:15Z")

</div>

Hey @digix.sameera ,

Please provide the Web SDK version, browser you are using, and if there are any errors in the console so we have enough info to help. 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [April 29, 2021, 4:00am UTC](https://devforum.zoom.us/t/remove-existing-participant-in-web-sdk/46714/3 "2021-04-29T04:00:03Z")

</div>

Closed on April 29, 2021, 4:00am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
