Batch delete users and the content they created
As stated in the comments, Views Bulk Operations provides helpful functionality. You can use the &quot;select all&quot; checkbox on the /admin/people page to select all the users, then deselect the few you want to keep. From the dropdown, you can then choose &quot;Cancel user account&quot;. After submitting, you will select the method by which to cancel the accounts in bulk (such as Delete the account and its content, or Delete the account and make its content belong to Anonymous).