I stumbled across this page, where it says that wp plugin delete does this: Deletes plugin files without deactivating or uninstalling.

Why is it important to deactivate a plugin before it is deleted? Is it a formality or can something terrible happen?

1 Answer 1


Generally, plugins have some functionality hooked onto the deactivation action. This could be clearing cache, resetting options, you name it.

Therefore the best practice is to deactivate them first, so they have the opportunity to clean up and execute whatever functionality they have hooked onto the deactivate event.

Now if the plugin is broken and can't be executed, or if the deactivation function does something you don't want or is broken in itself, you might need to delete it without running that functionality. In my experience, nothing bad really happens, except some junk files being left.

This can be different depending on the plugin however, so always excercise caution with this type of forced deletion.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.