Bulk remove users

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 :slight_smile: