# Reversing a deleted user by mistake

**URL:** https://meta.discourse.org/t/reversing-a-deleted-user-by-mistake/338915
**Category:** Support
**Created:** [November 28, 2024, 3:46am UTC](https://meta.discourse.org/t/reversing-a-deleted-user-by-mistake/338915 "2024-11-28T03:46:02Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![rext](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rext](https://meta.discourse.org/u/rext)
#### Post date: [November 28, 2024, 3:46am UTC](https://meta.discourse.org/t/reversing-a-deleted-user-by-mistake/338915/1 "2024-11-28T03:46:02Z")

</div>

Hello,

I’m a moderator in a forum using Discourse, and I accidentally deleted a user when I intended only to reject the post.

Is there a way to recover this user? Or at least send them an invite (and explain that it was a mistake)? I looked at the log and I could only see their username, but not their email.

I did see a related post about [how to restore deleted posts by a user](https://meta.discourse.org/t/restore-undelete-all-posts-by-a-user/304643), but does that still work if the user itself has been deleted?

Thanks in advance for your help.

---

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [November 28, 2024, 7:08pm UTC](https://meta.discourse.org/t/reversing-a-deleted-user-by-mistake/338915/2 "2024-11-28T19:08:11Z")

</div>

You will have to search your backup for his email.

Another vague option would be to scan your email server logs, if available.

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [November 28, 2024, 8:46pm UTC](https://meta.discourse.org/t/reversing-a-deleted-user-by-mistake/338915/3 "2024-11-28T20:46:17Z")

</div>

It may need some finessing

But in the past check the logs. Retrieve email address & username. Edit Anon##### to previous username. Edit email back in the user profile. Activate user. Send them a pm explaining the situation.

This will not restore profile pic and other details. But will reattach posts, PM’s, likes etc

The staff logs usually gives email address.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [November 28, 2024, 10:17pm UTC](https://meta.discourse.org/t/reversing-a-deleted-user-by-mistake/338915/4 "2024-11-28T22:17:52Z")

</div>

> [@Heliosurge](#):
>
> But in the past check the logs. Retrieve email address & username. Edit Anon##### to previous username. Edit email back in the user profile. Activate user. Send them a pm explaining the situation.

The OP says they deleted the account when they were reviewing the post (presumably flagged in the review panel) as a moderator, not anonymizing.

> [@rext](#):
>
> I’m a moderator in a forum using Discourse, and I accidentally deleted a user when I intended only to reject the post.

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [November 29, 2024, 1:24am UTC](https://meta.discourse.org/t/reversing-a-deleted-user-by-mistake/338915/5 "2024-11-29T01:24:01Z")

</div>

Missed that part. So must have been a new account. Which then as far as I know best you could likely do is direct email the user with an invite to rejoin.

---

<div class="post-metadata">

### Author: ![rext](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rext](https://meta.discourse.org/u/rext)
#### Post date: [December 3, 2024, 8:52am UTC](https://meta.discourse.org/t/reversing-a-deleted-user-by-mistake/338915/6 "2024-12-03T08:52:17Z")

</div>

Hey all,

Thank you for your input.

It seems like an invite is the only way to do it, which I already did. Is it possible to know if the invited user has accepted the invite?

---

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [December 3, 2024, 2:18pm UTC](https://meta.discourse.org/t/reversing-a-deleted-user-by-mistake/338915/7 "2024-12-03T14:18:22Z")

</div>

You will get a notification when an invitation is accepted.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [December 3, 2024, 4:15pm UTC](https://meta.discourse.org/t/reversing-a-deleted-user-by-mistake/338915/8 "2024-12-03T16:15:41Z")

</div>

> [@rext](#):
>
> Is it possible to know if the invited user has accepted the invite?

in addition to a notification, you can also see your redeemed invites at `[your forum]/my/invited/redeemed`
