entity:delete¶
Delete content entities.
Examples¶
entity:delete node --bundle=articleentity:delete shortcutentity:delete node 22,24entity:delete userentity:delete node --exclude=9,14,81entity:delete node --chunks=5entity:delete node --limit=500
Arguments¶
- entity_type. An entity machine name.
- [ids]. A comma delimited list of Ids.
Options¶
- --bundle=BUNDLE. Restrict deletion to the specified bundle. Ignored when ids is specified.
- --exclude=EXCLUDE. Exclude certain entities from deletion. Ignored when ids is specified.
- --chunks=CHUNKS. Specify how many entities will be deleted in the same step. [default: 50]
- --limit=LIMIT. Limit on the number of entities to delete.
Global Options¶
- -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
- -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
- To see all global options, run
drush core:global-options.
Aliases¶
- edel
- entity-delete
Legend
- An argument or option with square brackets is optional.
- Any default value is listed at end of arg/option description.
- An ellipsis indicates that an argument accepts multiple values separated by a space.