# Delete known user on approvals?

**URL:** https://meta.discourse.org/t/delete-known-user-on-approvals/28743
**Category:** Feature
**Tags:** approval
**Created:** [May 13, 2015, 3:03am UTC](https://meta.discourse.org/t/delete-known-user-on-approvals/28743 "2015-05-13T03:03:58Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [May 13, 2015, 3:03am UTC](https://meta.discourse.org/t/delete-known-user-on-approvals/28743/1 "2015-05-13T03:03:58Z")

</div>

I wonder, what would happen if I were to click the Delete User button on a user with posts?

I wonder what would happen if I were to click Delete User on my admin account?

Perhaps those buttons should only be there if the user is in a delete-able state?

![](https://global.discourse-cdn.com/meta/original/3X/5/b/5bed40f38771701499d918d49cc4a54e31fe5bb7.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 13, 2015, 3:32am UTC](https://meta.discourse.org/t/delete-known-user-on-approvals/28743/2 "2015-05-13T03:32:41Z")

</div>

I agree with this, maybe a simple check is to not show the button unless the user is tl0.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [May 13, 2015, 11:31am UTC](https://meta.discourse.org/t/delete-known-user-on-approvals/28743/3 "2015-05-13T11:31:30Z")

</div>

I thought it only showed up when specific conditions were met anyway… Such as less than 2 posts and within X number of days since account creation? Maybe I’m thinking of something else though.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 13, 2015, 10:00pm UTC](https://meta.discourse.org/t/delete-known-user-on-approvals/28743/4 "2015-05-13T22:00:45Z")

</div>

Possibly @eviltrout can you confim the conditions under which Delete User appears in the post approval UI?

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [May 14, 2015, 2:47pm UTC](https://meta.discourse.org/t/delete-known-user-on-approvals/28743/5 "2015-05-14T14:47:24Z")

</div>

Looks like it always shows up now. It might be tricky to pull up all the conditions as to whether a user can be deleted, since it involves counting posts + more?

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [May 14, 2015, 3:16pm UTC](https://meta.discourse.org/t/delete-known-user-on-approvals/28743/6 "2015-05-14T15:16:24Z")

</div>

When I’m in the admin on a user’s page, sometimes the delete button is there, sometimes it’s not. Is the code which controls that available in the Approvals page?

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [May 14, 2015, 3:37pm UTC](https://meta.discourse.org/t/delete-known-user-on-approvals/28743/7 "2015-05-14T15:37:11Z")

</div>

> [@eviltrout](#):
>
> It might be tricky to pull up all the conditions as to whether a user can be deleted, since it involves counting posts + more?

Just to be fair, I don’t mind if it is only shown for TL 1 and below with less than X posts. It isn’t hard to get out of TL 1 (in fact, I think you can do it without posting?). So I would not want to see it limited to TL 0. It should definitely include TL 1 (although I agree most spammers do not get out of TL 0).

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 14, 2015, 7:26pm UTC](https://meta.discourse.org/t/delete-known-user-on-approvals/28743/8 "2015-05-14T19:26:47Z")

</div>

For now just limit it to showing that button only on TL0 users please.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [May 19, 2015, 4:19pm UTC](https://meta.discourse.org/t/delete-known-user-on-approvals/28743/9 "2015-05-19T16:19:56Z")

</div>

This should do it:

[https://github.com/discourse/discourse/commit/8f0cd18d4b8ac77b9aaac860ed4e53223f316f7a](https://github.com/discourse/discourse/commit/8f0cd18d4b8ac77b9aaac860ed4e53223f316f7a)

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [December 4, 2025, 11:35am UTC](https://meta.discourse.org/t/delete-known-user-on-approvals/28743/10 "2025-12-04T11:35:55Z")

</div>


