Skip to content

Instantly share code, notes, and snippets.

@vyspiansky
Last active November 28, 2024 13:08
Show Gist options
  • Save vyspiansky/d3e655b0ccae71398850875883e45da8 to your computer and use it in GitHub Desktop.
Save vyspiansky/d3e655b0ccae71398850875883e45da8 to your computer and use it in GitHub Desktop.
Use Drush to remove nodes in Drupal 10

Drush version: 12.3.0.0.

Remove nodes with a specific bundle

If you have a large number of nodes and want to process them in batches, you can use the --chunk option:

drush entity:delete node --bundle=article --chunks=50

To remove all article entities

drush entity:delete node --bundle=article
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment