# Unable to delete user from Auth0 user management dashboard or Management API

**URL:** <https://community.auth0.com/t/unable-to-delete-user-from-auth0-user-management-dashboard-or-management-api/100402>\
**Category:** Get Help\
**Tags:** custom-database-connections, user-management, connections\
**Created:** [February 13, 2023, 7:21pm UTC](https://community.auth0.com/t/unable-to-delete-user-from-auth0-user-management-dashboard-or-management-api/100402 "2023-02-13T19:21:34Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![vdr\_hpanneerselvam](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@vdr\_hpanneerselvam](https://community.auth0.com/u/vdr_hpanneerselvam)\
**Post date:** [February 13, 2023, 7:21pm UTC](https://community.auth0.com/t/unable-to-delete-user-from-auth0-user-management-dashboard-or-management-api/100402/1 "2023-02-13T19:21:34Z")

</div>

We are having some issues with a ghost user that cannot be deleted via the user management dashboard or management API, but still appears in the users list in the dashboard. The user belongs to a custom database connection. When I click on the view details button for the user , I’m getting an error “Error! The user does not exist.” I also tried to delete the connection user using Management API but getting 204 response code which means the user does not exist.

When we create another user using the same email id, the user gets successfully created. But we are unable to trigger password reset email for the new user created. The problem could be because of the ghost user which exists, since the reset password email functionality works for all other users.

Attaching screenshot below which shows there exists two user accounts with the same email in the same tenant, out of which one is a non-existent user.

 ![GhostUser](https://global.discourse-cdn.com/auth0/original/3X/5/d/5d774bb60f2e90d51f98bd0a1ac099a7ec732822.jpeg)

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [February 14, 2023, 4:57pm UTC](https://community.auth0.com/t/unable-to-delete-user-from-auth0-user-management-dashboard-or-management-api/100402/3 "2023-02-14T16:57:12Z")

</div>

Hi @vdr_hpanneerselvam,

Welcome to the Auth0 Community!

Could you please try using the Management API’s [Delete a connection user endpoint](https://auth0.com/docs/api/management/v2#!/Connections/delete_users_by_email) to remove the affected connection and email address?

Let me also clarify that returning a `204` response code indicates that the user no longer exists.

Please let me know how this goes for you.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![vdr\_hpanneerselvam](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@vdr\_hpanneerselvam](https://community.auth0.com/u/vdr_hpanneerselvam)\
**Post date:** [February 14, 2023, 5:15pm UTC](https://community.auth0.com/t/unable-to-delete-user-from-auth0-user-management-dashboard-or-management-api/100402/4 "2023-02-14T17:15:22Z")

</div>

I tried using the “Delete a connection user endpoint” to remove the affected email address. Got 204 response from the API. But the ghost user with the same email id is still showing up in the user management dashboard.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/6/d/6d8effe438060aab5dd9f824875f3e7514e7a0f7.png)

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [February 15, 2023, 11:34pm UTC](https://community.auth0.com/t/unable-to-delete-user-from-auth0-user-management-dashboard-or-management-api/100402/5 "2023-02-15T23:34:07Z")

</div>

Hi @vdr_hpanneerselvam,

Thank you for your reply.

I understand you still have an affected user that was not deleted after using the Delete a connection user endpoint.

Now, could you please try deleting that user using their `user_id` with the [Delete a user endpoint](https://auth0.com/docs/api/management/v2#!/Users/delete_users_by_id)?

I look forward to your update.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![vdr\_hpanneerselvam](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@vdr\_hpanneerselvam](https://community.auth0.com/u/vdr_hpanneerselvam)\
**Post date:** [February 16, 2023, 3:38am UTC](https://community.auth0.com/t/unable-to-delete-user-from-auth0-user-management-dashboard-or-management-api/100402/6 "2023-02-16T03:38:09Z")

</div>

Hi @rueben.tiow

To delete a user with the “Delete a user” endpoint, I would require user\_id right? When I click on the user in the user management screen to view details , I get this error - “Error! User does not exist.” Attached screenshot of the error below.

 ![Screenshot 2023-02-16 at 9.02.44 AM](https://global.discourse-cdn.com/auth0/original/3X/f/9/f99fcc65a7e63031f731d2b487a67832b322fb93.jpeg)

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [February 16, 2023, 10:15pm UTC](https://community.auth0.com/t/unable-to-delete-user-from-auth0-user-management-dashboard-or-management-api/100402/8 "2023-02-16T22:15:19Z")

</div>

Hi @vdr_hpanneerselvam,

Thank you for your response.

I understand that you are still experiencing issues even after trying to delete the user.

Given that, I have created a Engineering ticket on your behalf asking for further support.

Once I have more information, I will relay it to you on this thread.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![vdr\_hpanneerselvam](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@vdr\_hpanneerselvam](https://community.auth0.com/u/vdr_hpanneerselvam)\
**Post date:** [February 17, 2023, 1:08pm UTC](https://community.auth0.com/t/unable-to-delete-user-from-auth0-user-management-dashboard-or-management-api/100402/10 "2023-02-17T13:08:27Z")

</div>

@rueben.tiow Awaiting your response, Thanks.

---

<div class="post-metadata">

**Author:** ![vdr\_hpanneerselvam](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@vdr\_hpanneerselvam](https://community.auth0.com/u/vdr_hpanneerselvam)\
**Post date:** [February 24, 2023, 12:42pm UTC](https://community.auth0.com/t/unable-to-delete-user-from-auth0-user-management-dashboard-or-management-api/100402/11 "2023-02-24T12:42:48Z")

</div>

@rueben.tiow Any updates on this?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [February 24, 2023, 8:31pm UTC](https://community.auth0.com/t/unable-to-delete-user-from-auth0-user-management-dashboard-or-management-api/100402/12 "2023-02-24T20:31:22Z")

</div>

Hi @vdr_hpanneerselvam,

Thank you for your reply.

I have just followed up on this with our Engineers, and they informed me that the issue involved the search index being out of sync.

Since then, they have repaired the search index and fixed the issue.

Please reach out again if you need further assistance.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![jackson2](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jackson2](https://community.auth0.com/u/jackson2)\
**Post date:** [March 2, 2023, 10:22am UTC](https://community.auth0.com/t/unable-to-delete-user-from-auth0-user-management-dashboard-or-management-api/100402/13 "2023-03-02T10:22:47Z")

</div>

Hi. I have similar issue and yes I am still experiencing similar issue of deleting a user via API as of this writing. What is happening? This is not yet resolved.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [March 13, 2023, 7:56pm UTC](https://community.auth0.com/t/unable-to-delete-user-from-auth0-user-management-dashboard-or-management-api/100402/14 "2023-03-13T19:56:55Z")

</div>

Hi @jackson2,

Thanks for bringing this to our attention.

To better assist you, could you please elaborate in more detail on the issues you are observing?

Thanks,  
Rueben

---

<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:** [March 27, 2023, 7:57pm UTC](https://community.auth0.com/t/unable-to-delete-user-from-auth0-user-management-dashboard-or-management-api/100402/15 "2023-03-27T19:57:20Z")

</div>

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