# Ghost user cannot be deleted

**URL:** <https://community.auth0.com/t/ghost-user-cannot-be-deleted/52256>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [October 27, 2020, 11:47am UTC](https://community.auth0.com/t/ghost-user-cannot-be-deleted/52256 "2020-10-27T11:47:51Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![student](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/student/32/12715_2.png) [@student](https://community.auth0.com/u/student)\
**Post date:** [October 27, 2020, 11:47am UTC](https://community.auth0.com/t/ghost-user-cannot-be-deleted/52256/1 "2020-10-27T11:47:51Z")

</div>

Hello,

We are having some issues with a ghost user that cannot be deleted via the dashboard or management API, but still appears in the users list in the dashboard. Moreover, we cannot generate another user using the same email address. Steps that we took prior to the issue:

1. Create a user using management api
2. Create password change ticket and send it to users email using management api
3. Give a user a role using management api
4. Give a user permissions using the management api

The user was able to access the app yesterday, however today he no longer has access and we cannot delete and create a new user.  
I found this blog from 2017 - [Linking user accounts leave behind corrupted users](https://community.auth0.com/t/linking-user-accounts-leave-behind-corrupted-users/8124#answer-8675)  
but it’s not helpful. Any idea what’s going on?

Cheers

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [October 28, 2020, 5:04pm UTC](https://community.auth0.com/t/ghost-user-cannot-be-deleted/52256/2 "2020-10-28T17:04:41Z")

</div>

Any analysis on this sort of issues require most of the times knowing specific data about the user in question. I understand this is a public forum so there are considerations around this, if their user identifier does not include any sensitive information are you okay with sharing the user identifier and tenant name?

---

<div class="post-metadata">

**Author:** ![student](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/student/32/12715_2.png) [@student](https://community.auth0.com/u/student)\
**Post date:** [November 1, 2020, 8:43am UTC](https://community.auth0.com/t/ghost-user-cannot-be-deleted/52256/3 "2020-11-01T08:43:02Z")

</div>

Hi, the user is a test user on our stage Auth0 platform so I can happily share the user info.

ID- auth0|5f95882d418fef00683f3bc4  
Name - Yoni

I was only able to get this info running a management api call (the postal doesn’t show any info for that user - when selected it says that the user doesn’t exist).

---

<div class="post-metadata">

**Author:** ![student](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/student/32/12715_2.png) [@student](https://community.auth0.com/u/student)\
**Post date:** [November 15, 2020, 12:01pm UTC](https://community.auth0.com/t/ghost-user-cannot-be-deleted/52256/4 "2020-11-15T12:01:33Z")

</div>

Any idea what might be the issue? It’s quite frustrating to not be able to add/delete this user…

---

<div class="post-metadata">

**Author:** ![supun](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/supun/32/17069_2.png) [@supun](https://community.auth0.com/u/supun)\
**Post date:** [November 15, 2020, 3:19pm UTC](https://community.auth0.com/t/ghost-user-cannot-be-deleted/52256/5 "2020-11-15T15:19:14Z")

</div>

Hi @student,

I do not have much context on this issue. If you think deleting this user and recreating the user, you can try the [Delete a connection user](https://auth0.com/docs/api/management/v2#!/Connections/delete_users_by_email) endpoint of the Management API.

Let me know if that helps.

---

<div class="post-metadata">

**Author:** ![student](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/student/32/12715_2.png) [@student](https://community.auth0.com/u/student)\
**Post date:** [November 16, 2020, 10:35am UTC](https://community.auth0.com/t/ghost-user-cannot-be-deleted/52256/6 "2020-11-16T10:35:05Z")

</div>

I am getting a 204 response (meaning that the user was successfully deleted/ no longer exists), but the user still shows up in the Auth0 portal, as well as in the Management API GET users call.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 16, 2020, 11:00am UTC](https://community.auth0.com/t/ghost-user-cannot-be-deleted/52256/7 "2020-11-16T11:00:38Z")

</div>

Hey there @student!

Can we ask you to see if such thing is only happening for that particular user?

---

<div class="post-metadata">

**Author:** ![supun](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/supun/32/17069_2.png) [@supun](https://community.auth0.com/u/supun)\
**Post date:** [November 16, 2020, 2:08pm UTC](https://community.auth0.com/t/ghost-user-cannot-be-deleted/52256/8 "2020-11-16T14:08:59Z")

</div>

Hi @student,

Also please DM me the user id and the tenant domain to have a further look.

---

<div class="post-metadata">

**Author:** ![student](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/student/32/12715_2.png) [@student](https://community.auth0.com/u/student)\
**Post date:** [November 18, 2020, 10:39am UTC](https://community.auth0.com/t/ghost-user-cannot-be-deleted/52256/9 "2020-11-18T10:39:04Z")

</div>

ID- auth0|5f95882d418fef00683f3bc4  
Domain - desalitech-stage

---

<div class="post-metadata">

**Author:** ![student](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/student/32/12715_2.png) [@student](https://community.auth0.com/u/student)\
**Post date:** [November 18, 2020, 10:39am UTC](https://community.auth0.com/t/ghost-user-cannot-be-deleted/52256/10 "2020-11-18T10:39:34Z")

</div>

I haven’t seen this happen with other users. I am able to create and delete users without any issue.

---

<div class="post-metadata">

**Author:** ![supun](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/supun/32/17069_2.png) [@supun](https://community.auth0.com/u/supun)\
**Post date:** [November 18, 2020, 10:50am UTC](https://community.auth0.com/t/ghost-user-cannot-be-deleted/52256/11 "2020-11-18T10:50:12Z")

</div>

Interesting. Haven’t seen a similar issue before. Allow me some time to investigate this and I’ll get back to you as soon as I have an update.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 18, 2020, 11:17am UTC](https://community.auth0.com/t/ghost-user-cannot-be-deleted/52256/12 "2020-11-18T11:17:10Z")

</div>

Thanks @supun for handling that!
