Drupal Modules: The One Percent — Delete all (video tutorial)

Episode 52

Here is where we bring awareness to Drupal modules running on less than 1% of reporting sites. Today we'll investigate Delete all, a module which facilitates deleting users and/or content en masse.



I am no longer using delete_all. I used to work with it throw drush and drush 9 comes with the entity:delete (edel) command. From the help:

entity:delete (edel) Delete content entities.

Delete content entities.

To delete configuration entities, see config:delete command.

drush entity:delete node --bundle=article Delete all article entities.
drush entity:delete shortcut Delete all shortcut entities.
drush entity:delete node 22,24 Delete nodes 22 and 24.

entity_type An entity machine name.
[ids] A comma delimited list of Ids.

--bundle=BUNDLE Restrict deletion to the specified bundle. Ignored when
ids is specified.

Aliases: edel, entity-delete

Add new comment

The content of this field is kept private and will not be shown publicly.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Other Tutorials