Skip to content

Command to delete all inactive plugins and/or themes #1954

@drywall

Description

@drywall

Is there anything in the works to make it easier to delete inactive stuff? Something like:

wp plugin delete --inactive

Right now the easiest way I've found to do this is with:

wp plugin list --status=inactive --fields=name --format=csv | tail --lines=+2 | xargs wp plugin delete

...which is not terribly convenient or self-explanatory. If nothing's in the works but people would like it, I'm happy to attempt to cobble something together...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions