Skip to content

About

Drupal - Custom Drush command to delete users by role.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

Repository files navigation

Module description and functionality

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]

Example

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...

image

If there are no users with the requested role, the module will show you a message.

image

Installation

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.

About

Drupal - Custom Drush command to delete users by role.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages