So, you can use the following query:
delete u, t, p
from mybb_users u
left join mybb_threads t on t.uid=u.uid
left join mybb_posts p on p.uid=u.uid
where u.usergroup=GID or concat(',', u.additionalgroups, ',') LIKE '%,GID,%'
Replace the two occurences of
GID with the gid of your admin group.
If you have several admin usergroups, change the where:
where u.usergroup in (GID1, GID2, GID3) or concat(',', u.additionalgroups, ',') LIKE '%,GID1,%' or concat(',', u.additionalgroups, ',') LIKE '%,GID2,%' or concat(',', u.additionalgroups, ',') LIKE '%,GID3,%'
Note that the where using LIKE is if you use additional groups for your admins, if you set the admin group as primary you cen only use the part based on u.usergroup.
Second note: remember to do a
Recount & rebuild after running the query.
important note : backup your database before running the query