Skip to content

Drush entity:delete only takes into account entities which the anonymous user can access #5058

@codebymikey

Description

@codebymikey

Is your feature request related to a problem? Please describe.
Running a command such as:

drush entity:delete node

Will only take into account nodes which are published (or can be accessed by anonymous users).

Describe the solution you'd like
The query object retrieved by the command should invoke $query->accessCheck(FALSE); so that the entity access check is ignored.

The main question is whether this should be introduced as a new no-access-check option or be the default behaviour going forward (and allowing users to opt out to keep the old behaviour).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions