field:delete¶
11.0+
Delete a field.
Examples¶
field:delete taxonomy_term tagfield:delete field-delete taxonomy_term tag --field-name=field_tag_labelfield:delete field-delete taxonomy_term --field-name=field_tag_label --all-bundles
Arguments¶
- [entityType]. The machine name of the entity type
- [bundle]. The machine name of the bundle
Options¶
- --field-name=FIELD-NAME. A unique machine-readable name containing letters, numbers, and underscores
- --all-bundles[=ALL-BUNDLES]. Whether to delete the field from all bundles.
- --show-machine-names[=SHOW-MACHINE-NAMES]. Show machine names instead of labels in option lists
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¶
- field-delete
- fd
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.