This module allows you to delete users by role from your Drupal website.
You just have to install the module and run the following command:
drush_delete_users:delete-users-by-role [role_machine_name]
Let's delete all users with the "Content Editor" role.
In this case, our command will be: drush_delete_users:delete-users-by-role content_editor
We can execute it with "docker-compose" as follows...
If there are no users with the requested role, the module will show you a message.
Install as you would normally install a contributed Drupal module.
See: https://www.drupal.org/node/895232 for further information.
Feel free to share and use this custom module.

