# deleteUser returns 204 when called twice

**URL:** <https://community.auth0.com/t/deleteuser-returns-204-when-called-twice/98554>\
**Category:** Get Help\
**Tags:** management\_api, delete-user\
**Created:** [January 20, 2023, 8:20am UTC](https://community.auth0.com/t/deleteuser-returns-204-when-called-twice/98554 "2023-01-20T08:20:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bieber](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bieber/32/42820_2.png) [@bieber](https://community.auth0.com/u/bieber)\
**Post date:** [January 20, 2023, 8:20am UTC](https://community.auth0.com/t/deleteuser-returns-204-when-called-twice/98554/1 "2023-01-20T08:20:41Z")

</div>

Hey there,

Endpoint I used: [Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Users/delete_users_by_id)

I tried to delete a user and it works fine. But when I trigger it a second time I get a 204 again. I was expecting something like 400 oder 404.

Are my expectation wrong?

I used curl and also a Webflux Webclient to call the delete endpoint.

If you need more info, please let me know! Thank you!

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [January 21, 2023, 12:46am UTC](https://community.auth0.com/t/deleteuser-returns-204-when-called-twice/98554/3 "2023-01-21T00:46:29Z")

</div>

Hi @bieber ,

Welcome to the Auth0 Community!

> [@bieber](#):
>
> I tried to delete a user and it works fine. But when I trigger it a second time I get a 204 again. I was expecting something like 400 or 404.

What you observed is the expected behavior. The delete user endpoint will return 204 with “no content” if the user does not exist.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/e/9/e91663121cf8a91c25cd11e9699b11eb4c5d7251.jpeg)  
  
  
Please let me know if any other queries about this topic. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 4, 2023, 12:47am UTC](https://community.auth0.com/t/deleteuser-returns-204-when-called-twice/98554/4 "2023-02-04T00:47:29Z")

</div>

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