Just use bulk user actions (Users-->Accounts-->Bulk User Actions, add all users to the "Selected" users panel, and then select "Delete" from the list of actions to take. It will not delete site administrators, but after selecting everyone, then you should unselect anyone you don't want to delete.
Enrolment
remove all users from moodle
This discussion has been locked so you can no longer reply to it.