Currently there is no mass pruning feature for users. A query isn't sufficient as there are many tables involved.
This feature has been requested. I expect it will be implemented in a future version. In the meantime the extra users don't hurt anything.