# Bulk remove users

**URL:** <https://meta.discourse.org/t/bulk-remove-users/53450>\
**Category:** Product Support\
**Created:** [November 27, 2016, 10:32pm UTC](https://meta.discourse.org/t/bulk-remove-users/53450 "2016-11-27T22:32:00Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Queth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/queth/32/154753_2.png) [@Queth](https://meta.discourse.org/u/Queth)\
**Post date:** [January 29, 2020, 1:03pm UTC](https://meta.discourse.org/t/bulk-remove-users/53450/14 "2020-01-29T13:03:09Z")

</div>

I have the same issue, but with users I need to remove before doing the final import. I have been working on creating a base setup with all settings/themes/whatever before doing the import - now (after a lot of work) I discover I had done this on a partial import that had imported 4000 users already.

I wish to delete those so nobody will accidentally get any emails of digests or whatever (when I forget to change those settings).

How do I adapt that query so only the admin user will remain ?  
There are 4000 or so in the active userlist  
and 30 or so in the suspended users list.

thank you in advance 🙂

---

_[View the full topic](https://meta.discourse.org/t/bulk-remove-users/53450)._
