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

Add --all option to delete commands #113

Closed
swissspidy opened this issue Aug 2, 2018 · 3 comments
Closed

Add --all option to delete commands #113

swissspidy opened this issue Aug 2, 2018 · 3 comments

Comments

@swissspidy
Copy link
Member

swissspidy commented Aug 2, 2018

Right now it's not possible to run something like wp theme delete --all or wp plugin delete --all to quickly delete all themes and plugins.

I guess my best bet right now is to use the list commands + xargs or something.

wp plugin uninstall --all works though, so I think there's some inconsistency.

Edit: #88 already covers wp plugin delete --all. My suggestion expands this to the theme command as well.

@wojsmol
Copy link
Contributor

wojsmol commented Aug 2, 2018

Currently I use this to delete inactive themes

wp theme install ~/test.zip --activate
wp theme delete $(wp theme list --status=inactive --field=name)

@swissspidy
Copy link
Member Author

@wojsmol Simple & effective!

I wish this would work for the active theme too, see #114.

@wojsmol
Copy link
Contributor

wojsmol commented Aug 2, 2018

In my use-case I use custom theme so #114 is not for me but good addition in general.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants