# Remove all users except admins or a few select users whichever is easier

**URL:** <https://meta.discourse.org/t/remove-all-users-except-admins-or-a-few-select-users-whichever-is-easier/249199>\
**Category:** Product Support\
**Created:** [December 17, 2022, 1:28am UTC](https://meta.discourse.org/t/remove-all-users-except-admins-or-a-few-select-users-whichever-is-easier/249199 "2022-12-17T01:28:43Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [December 17, 2022, 3:25pm UTC](https://meta.discourse.org/t/remove-all-users-except-admins-or-a-few-select-users-whichever-is-easier/249199/7 "2022-12-17T15:25:57Z")

</div>

You can use a rails script or [Data Explorer](https://meta.discourse.org/t/32566?silent=true) to check for the email addresses and see if one is blank… Though it would be weird. No email field is blank by default even for automatically generated accounts like discobot ou system (which are admins by default).

Were your users imported? But even so, I’m pretty sure that account creation methods don’t allow blank email fields.

---

_[View the full topic](https://meta.discourse.org/t/remove-all-users-except-admins-or-a-few-select-users-whichever-is-easier/249199)._
