I understand the difference between deactivation and uninstallation. But the CLI also has a delete option.
How does it differ?
To be safe, should I deactivate, then uninstall, then delete?
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
From the docs about
wp plugin delete:
Deletes plugin files without deactivating or uninstalling.
so after runing the comand on a plugin I would expect the admin plugin page showing the warning about the missing plugin being deactivated and all the uninstalling database related actions have not taken place.
Just run uninstall with the
--deactivate option and you are done.