Skip to content

royoluis/drush_delete_users

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

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 10 - Custom Drush command to delete users by role.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages