Skip to content

field:delete

11.0+

Delete a field

Examples

  • field:delete. Delete a field by answering the prompts.
  • field-delete taxonomy_term tag. Delete a field and fill in the remaining information through prompts.
  • field-delete taxonomy_term tag --field-name=field_tag_label. Delete a field in a non-interactive way.
  • field-delete taxonomy_term --field-name=field_tag_label --all-bundles. Delete a field from all bundles.

Arguments

  • [entityType]. The machine name of the entity type.
  • [bundle]. The machine name of the bundle.

Options

  • --field-name=FIELD-NAME. The machine name of the field.
  • --show-machine-names[=SHOW-MACHINE-NAMES]. Show machine names instead of labels in option lists.
  • --all-bundles[=ALL-BUNDLES]. Whether to delete the field from all bundles.

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 topic and pick the first choice.

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.