# Prevent deleting of abandoned, unactivated accounts?

**URL:** <https://meta.discourse.org/t/prevent-deleting-of-abandoned-unactivated-accounts/72237>\
**Category:** SSO\
**Created:** [2017 年10 月 17 日 00:14 UTC](https://meta.discourse.org/t/prevent-deleting-of-abandoned-unactivated-accounts/72237 "2017-10-17T00:14:34Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![kgoetz](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@kgoetz](https://meta.discourse.org/u/kgoetz)\
发布日期： [2017 年10 月 17 日 00:14 UTC](https://meta.discourse.org/t/prevent-deleting-of-abandoned-unactivated-accounts/72237/1 "2017-10-17T00:14:34Z")

</div>

Hi,

I’m looking to disable a number of SSO users.

The topic below confirms only those with no posts will be deleted (good), but I’m hoping to prevent _all_ users created/synced via sso from being deleted in discourse no matter what their post count.

> [@Can I restore a deleted user?](https://meta.discourse.org/t/can-i-restore-a-deleted-user/65765):
>
> Is there a way to restore a user who was Automatically deleted as abandoned, deactivated account? Background I migrated from another forum. I required all users to reset their passwords. It took at least one of the users longer that 14 days (the default grace period) to Activate their account. Now they cannot log in to reset their password. I’m concerned because many others probably fall into this scenario. I’ve since extended the Grace Period setting.

I do want discourse to keep deleting spam/invalid accounts.

Is such a thing possible?

---

_[View the full topic](https://meta.discourse.org/t/prevent-deleting-of-abandoned-unactivated-accounts/72237)._
