Supprimer en masse plusieurs utilisateurs en tant qu'utilisateur staff

Discourse offers the ability to delete multiple users directly from the admin users list. This feature is useful in situations where unwanted user accounts are created, such as during a spam wave, and you want to delete those accounts in a quick way.

To use this feature, visit the admin users list at /admin/users/list, or any of its variants, and follow the steps:

  1. Enable the bulk select mode by clicking the bulk select icon image at the top of the user list next to the Username column

  2. A checkbox next to each user will appear once the bulk select mode is enabled. Select the users that you wish to delete

  3. From the “Bulk actions” dropdown that appears at the top of the list, select “Delete users…”

  4. In the confirmation modal, type in the confirmation phrase

  5. Optionally, select the option for blocking the IP and email addresses of the selected users

  6. Confirm the delete operation

After initiating the delete operation, the confirmation modal will update to display the real-time progress as each user is deleted. If any errors occur during the deletion process, they will appear in the modal while continuing to process the remaining users.

When using bulk selection mode, you can refine your search to find specific users. The users you select will be remembered even as you modify your search term or remove it completely. This makes it convenient to select multiple users across different search results.

Screenshots below show the process in sequence, with numbered markers matching the steps above:

Some caveats:

  • You can delete up to 100 users users in one go
  • Users that can’t be deleted will display a disabled checkbox and hovering over the checkbox will show a tooltip explaining why they can’t be deleted

Best practices for user management

Effective user management is crucial for a healthy and safe community. Here are some best practices to follow:

  • Regularly review new users: Keep an eye on the /admin/users/list/new page. This is often the first place you’ll spot suspicious activity or potential spammers.

  • Use the tools you have:

    • Screened IPs and Emails: Proactively block known spam sources in your site settings under Admin > Logs > Screened IPs and Screened Emails.

    • Trust Levels: Familiarize yourself with Discourse trust levels. They are a fundamental part of your community’s immune system, granting more permissions to trusted users over time.

  • Establish clear community guidelines: A good set of guidelines helps set expectations for behavior and makes moderation decisions easier. Ensure they are easy to find and read.

  • Manage permissions with groups: Instead of assigning permissions on a per-user basis, use groups. This makes managing access to categories and features much more scalable and organized.

  • Don’t let inactive users linger (indefinitely): While not always necessary, you can establish a policy for deactivating or anonymizing users who have been inactive for an extended period, especially if they have no posts. This can be done to respect user privacy or to keep your user list tidy. The delete_user_max_post_age site setting can help automate this for new, post-less users.

Last edited by @hugh 2025-11-03T04:15:11Z

Last checked by @hugh 2025-11-03T04:15:16Z

Check documentPerform check on document:
4 « J'aime »

How would I do the former in Discourse? Can you assign permissions on a per-user basis?

What is the connection between deactivating or anonymizing and a setting for deleting users? I thought deactivating or anonymizing doesn’t delete posts.

1 « J'aime »