# How to delete a user using the API if user is not activated

**URL:** <https://devforum.zoom.us/t/how-to-delete-a-user-using-the-api-if-user-is-not-activated/58431>\
**Category:** API and Webhooks\
**Created:** [October 5, 2021, 2:51pm UTC](https://devforum.zoom.us/t/how-to-delete-a-user-using-the-api-if-user-is-not-activated/58431 "2021-10-05T14:51:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![c-test](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/c-test/32/31620_2.png) [@c-test](https://devforum.zoom.us/u/c-test)\
**Post date:** [October 5, 2021, 2:51pm UTC](https://devforum.zoom.us/t/how-to-delete-a-user-using-the-api-if-user-is-not-activated/58431/1 "2021-10-05T14:51:56Z")

</div>

## Using this template helps us debug your issues more effectively 🙂

**Description**

**Error**  
API throws error if we are trying to delete existing unactivated user.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
Knowing the endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

**Which Endpoint/s?**  
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. create user using the api call which described here [https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usercreate](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usercreate), using the following params:

data = {  
“action”: “create”,  
“user\_info”: {  
“email”: email,  
“type”: 1,  
“first\_name”: name,  
“last\_name”: surname,  
}  
2. user created and has uniq id since domain of created user is verified. user appears in users tab not in pending.  
3. delete user using the method described here [https://marketplace.zoom.us/docs/api-reference/zoom-api/users/userdelete](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/userdelete)

**Screenshots (If applicable)**

**Additional context**

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [October 6, 2021, 10:21pm UTC](https://devforum.zoom.us/t/how-to-delete-a-user-using-the-api-if-user-is-not-activated/58431/2 "2021-10-06T22:21:38Z")

</div>

Hi @c-test ,

Happy to help! Can you please share the full request/response payloads as well as the exact error you’re receiving?

Thanks!

---

<div class="post-metadata">

**Author:** ![c-test](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/c-test/32/31620_2.png) [@c-test](https://devforum.zoom.us/u/c-test)\
**Post date:** [October 7, 2021, 7:50am UTC](https://devforum.zoom.us/t/how-to-delete-a-user-using-the-api-if-user-is-not-activated/58431/3 "2021-10-07T07:50:50Z")

</div>

Please kindly find request and response here [Screen Shot 2021-10-07 at 10.39.06.png - Google Drive](https://drive.google.com/file/d/15u7XvQEFntxtKNdgVKFp0U6XIAPnT4jd/view?usp=sharing), [Screen Shot 2021-10-07 at 10.42.15.png - Google Drive](https://drive.google.com/file/d/1bYkyoVgCHJxTZSXkvjecjHf-eRwsMFpo/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [October 15, 2021, 5:58pm UTC](https://devforum.zoom.us/t/how-to-delete-a-user-using-the-api-if-user-is-not-activated/58431/4 "2021-10-15T17:58:15Z")

</div>

Hey @c-test,

When deleting a user, please make sure that you are setting the action to “Delete”:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/0/900cdbfac444a9940a35758edbd8a617e3b43c89.png)

Let me know if that helps.

Thanks,  
Max

---

<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:** [November 15, 2021, 3:58am UTC](https://devforum.zoom.us/t/how-to-delete-a-user-using-the-api-if-user-is-not-activated/58431/5 "2021-11-15T03:58:35Z")

</div>

Closed on November 15, 2021, 3:58am UTC

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