# Deleting a user account

**URL:** https://meta.discourse.org/t/deleting-a-user-account/312021
**Category:** Site Management
**Tags:** how-to, users
**Created:** [June 18, 2024, 6:10am UTC](https://meta.discourse.org/t/deleting-a-user-account/312021 "2024-06-18T06:10:27Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Discourse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discourse/32/148734_2.png) [@Discourse](https://meta.discourse.org/u/Discourse)
#### Post date: [June 18, 2024, 6:10am UTC](https://meta.discourse.org/t/deleting-a-user-account/312021/1 "2024-06-18T06:10:27Z")

</div>

> 🔖 This guide covers how to delete a user account in Discourse. This may be necessary for various administrative reasons, such as compliance with user requests or maintaining community standards.
> 
> 🙋 Required user level: Administrator or Moderator

Deleting a user account in Discourse can be essential for maintaining a clean and compliant forum. This guide will walk you through the steps to delete a user account safely and effectively.

## Site settings for user deletion

Discourse has several settings that may restrict the deletion of users based on their activity and account age. Understanding these settings is crucial for managing user deletions effectively.

### Important settings:

- **`delete_user_max_post_age`** : The number of days since a user’s first post, within which the user can be deleted. For instance, setting this to 30 means users with posts older than 30 days cannot be deleted. The default is 60 days.
- **`delete_all_posts_max`** : The maximum number of posts a user can have for the “Delete All Posts” button to be available to moderators. If a user has more posts than this value, moderators will not be able to delete all their posts. Admins bypass this check. The default is 15.

Additionally, there is a hardcoded limit: staff members cannot delete a user who has more than 5 posts, unless the user’s first post is within the `delete_user_max_post_age` window.

## Steps for deleting a user account

### 1. Access the user’s admin page

Navigate to the user’s admin page following the instructions in the [Access a User’s Admin Page](https://meta.discourse.org/t/access-a-user-s-admin-page/311859) guide.

### 2. Delete all posts (if needed)

Based on the settings, you may need to delete the user’s posts before deleting their account. In the user’s admin page, click the **Delete all posts** button if the user has any posts that need to be removed.

 ![Screenshot 2024-06-13 at 18-30-48 Admin - devpop](https://global.discourse-cdn.com/meta/original/4X/8/0/a/80a3342c4c9e85ed793a3fb7a365d2b286f46ae7.png)

A confirmation dialog will appear asking for confirmation to delete all posts.

 ![Screenshot 2024-06-13 at 18-31-33 Admin - devpop](https://global.discourse-cdn.com/meta/original/4X/d/d/3/dd3ebda910e89f17a251021de84dc5898f9aef2f.png)

### 3. Delete the user account (and optionally add to blocklists)

To delete the user account, scroll further down and click the **Delete User** button.

 ![Screenshot 2024-06-13 at 18-32-51 Admin - devpop](https://global.discourse-cdn.com/meta/original/4X/d/b/6/db63e589dd3cff05a0d16f49b03aac0b959e665f.png)

You’ll have the option to choose between **Delete only** and **Delete and block this email and IP address**. The latter will prevent the user from re-registering with the same email address or IP address.

 ![Screenshot 2024-06-13 at 18-17-32 Admin - devpop](https://global.discourse-cdn.com/meta/original/4X/8/4/5/845f73fc5316815d17ced5ec3fe7d008fdb42928.png)

> Last edited by @Discourse 2026-03-23T21:52:03Z
> 
> > **Check document**
> >
> > Perform check on document:

---

_[View the full topic](https://meta.discourse.org/t/deleting-a-user-account/312021)._
