Active
Project:
Delete all
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 May 2012 at 12:10 UTC
Updated:
4 Sep 2023 at 09:10 UTC
Jump to comment: Most recent
Could a feature be added that allows all users to be deleted except those belonging to specific groups? (e.g. administrator, anonymous, moderator)..
There was a D6 patch for this #773224, perhaps it would be ported.
Comments
Comment #1
coderintherye commentedThis is done in http://drupal.org/node/1434254
However, I haven't done it for the UI yet, only drush. I'll gladly accept patches though.
Comment #2
boran commentedWow. That drush integration is great, even better than a GUI.
How about having an option to delete "all users except" ROLE1 ROLE2.
i.e. when copying a site from production to test, delete all users except admins moderators.
Comment #3
coderintherye commentedYeah, I think that'd be pretty straight-forward.
I'd do it kind of like views does it.
List all the roles as checkboxes. Users with these roles checked will be deleted.
Have also a final checkbox which says "Inverse: Delete users that don't have the checked roles"
Code is fairly straight-forward for that too. Maybe this weekend I could put it in.
Comment #4
avpaderno