# Does discourse automatically remove inactive members?

**URL:** https://meta.discourse.org/t/does-discourse-automatically-remove-inactive-members/115247
**Category:** Support
**Created:** [April 16, 2019, 5:51pm UTC](https://meta.discourse.org/t/does-discourse-automatically-remove-inactive-members/115247 "2019-04-16T17:51:01Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![MAR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mar/32/71419_2.png) [@MAR](https://meta.discourse.org/u/MAR)
#### Post date: [April 16, 2019, 5:51pm UTC](https://meta.discourse.org/t/does-discourse-automatically-remove-inactive-members/115247/1 "2019-04-16T17:51:01Z")

</div>

I have a question regarding the membership controls? Recently the numbers for our site have gone down and I wondered if it was actually people leaving or whether inactive member accounts are deactivated?

---

<div class="post-metadata">

### Author: ![DNSTARS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dnstars/32/100957_2.png) [@DNSTARS](https://meta.discourse.org/u/DNSTARS)
#### Post date: [April 16, 2019, 5:57pm UTC](https://meta.discourse.org/t/does-discourse-automatically-remove-inactive-members/115247/2 "2019-04-16T17:57:20Z")

</div>

The latter was included in an update recently.

> [@Discourse deleted 1500 inactive users who haven't been seen for two years after update](https://meta.discourse.org/t/discourse-deleted-1500-inactive-users-who-havent-been-seen-for-two-years-after-update/114995/24):
>
> I think this is a pretty harmless change all in all, but maybe there could be a framework for presenting new site settings and important changes to the admin on the first visit after an upgrade so they can tweak them before they effect anything? Like a mini version of the first time setup wizard? Being able to sort the site settings list by “newness” would also be nice to help admins discover all the new features. slight_smile

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [April 16, 2019, 5:59pm UTC](https://meta.discourse.org/t/does-discourse-automatically-remove-inactive-members/115247/3 "2019-04-16T17:59:33Z")

</div>

See the [Discourse 2.3.0.beta6 Release Notes](https://meta.discourse.org/t/discourse-2-3-0-beta6-release-notes/112839)

> [@Discourse 2.3.0.beta6 Release Notes](https://meta.discourse.org/t/discourse-2-3-0-beta6-release-notes/112839/1):
>
> ### Delete accounts that have never participated, are trust level 0 and have not been seen in 2 years
> 
> Discourse now includes a new site setting called `clean up inactive users after days` this is set 730 days by default.
> 
> Once a day Discourse will find all user accounts that
> 
> - Never posted anything on Discourse
> - If you posted something and then deleted it you will not be eligible for clean up.
> 
> - Have not been seen for `clean up inactive users after days`
> - Are trust level zero
> 
> This change is in place so Discourse default protects end users and removes emails of completely unused accounts.
> 
> If you wish to disable the feature, set `clean up inactive users after days` to high number.

---

<div class="post-metadata">

### Author: ![MAR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mar/32/71419_2.png) [@MAR](https://meta.discourse.org/u/MAR)
#### Post date: [April 16, 2019, 6:26pm UTC](https://meta.discourse.org/t/does-discourse-automatically-remove-inactive-members/115247/4 "2019-04-16T18:26:31Z")

</div>

is there a way to reinstate or know who has been deleted? for our setup, the record of members was important for our mapping activities.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [April 16, 2019, 6:55pm UTC](https://meta.discourse.org/t/does-discourse-automatically-remove-inactive-members/115247/5 "2019-04-16T18:55:03Z")

</div>

Deleted users should be logged, check staff logs.

---

<div class="post-metadata">

### Author: ![hross](https://avatars.discourse-cdn.com/v4/letter/h/65b543/32.png) [@hross](https://meta.discourse.org/u/hross)
#### Post date: [January 29, 2022, 1:08am UTC](https://meta.discourse.org/t/does-discourse-automatically-remove-inactive-members/115247/6 "2022-01-29T01:08:25Z")

</div>

Follow up question. I’ve been doing some querying of our users. I am seeing users in our system that have not been seen in more than 2 years (730 days) and are at Trust Level 0, but were created before this upgrade. Am I correct in assuming that they are not part of of this feature because they existed before it was implemented?

---

<div class="post-metadata">

### Author: ![th21](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/th21/32/211915_2.png) [@th21](https://meta.discourse.org/u/th21)
#### Post date: [January 29, 2022, 11:51pm UTC](https://meta.discourse.org/t/does-discourse-automatically-remove-inactive-members/115247/7 "2022-01-29T23:51:37Z")

</div>

is it possible to query who is in the query to be cleaned up before enabling this function?

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [February 9, 2022, 10:49am UTC](https://meta.discourse.org/t/does-discourse-automatically-remove-inactive-members/115247/8 "2022-02-09T10:49:28Z")

</div>

If a user created a post and is still at TL0, they still won’t be deleted. Having any posts exempts you from this deletion.
