user:delete

Delete users for the application

Usage:

drupal user:delete [options]
ud

Available options

Option Details
--user-id User id to be deleted
--roles Roles associated to users to be deleted

Examples

  • Delete user specifying the id and the user role
    drupal user:delete  \
    --user-id="2"
    --roles='authenticated'
    
  • Delete user specifying its id
    drupal user:delete  \
    --user-id="3"