Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[entity:delete] Allow deleting all entities of a type. #3599

Closed
cburschka-pwc opened this issue Nov 21, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@cburschka-pwc
Copy link
Contributor

commented Nov 21, 2017

Uninstalling a module via the console frequently fails because the module has created content entities, which need to be deleted:

 [ERROR] The following reasons prevent the modules from being uninstalled:
    There is content for the entity type: @entity_type. <a href=":url">Remove @entity_type_plural</a>.  

It would be great if this deletion could be performed via the console as well. Currently entity:delete only deletes a single entity.

Proposed solutions:

  1. Add a new command, entity:delete:all <type>.
  2. Add an optional argument so that entity:delete <type> --all deletes all entities of the given type.

cburschka added a commit to cburschka/drupal-console that referenced this issue Nov 23, 2017

jmolivas added a commit that referenced this issue Dec 5, 2017

[entity:delete] Add --all option. (#3599) (#3604)
* [entity:delete] Add --all option. (#3599)

* [entity:delete] Confirm --all deletion.
@cburschka-pwc

This comment has been minimized.

Copy link
Contributor Author

commented Dec 8, 2017

(Merged)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.