Deleting a user account

:bookmark: 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.

:person_raising_hand: 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_posts: Determines the maximum number of posts a user can have for their account to be eligible for deletion. For example, if set to 5, users with more than 5 posts cannot be deleted.
  • 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.
  • delete_all_posts_max: The maximum number of posts that can be deleted at once using the “Delete All Posts” button. For example, setting this to 100 limits bulk deletions to 100 posts at a time.

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 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.

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

Screenshot 2024-06-13 at 18-31-33 Admin - devpop

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

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

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.

Last edited by @Discourse 2024-06-18T06:10:27Z

Check documentPerform check on document:
2 Likes