Delete Plugin
wp_delete_pluginPermanently delete an installed WordPress plugin. Deactivates the plugin first if active, and requires explicit confirmation for production sites to prevent accidental removal.
Instructions
Deactivate (if needed) and permanently delete an installed plugin from the site. 'plugin' is the basename (folder/file.php). On the LIVE production site this refuses unless confirm_production=true. This cannot be undone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plugin | Yes | Plugin basename, e.g. 'folder/file.php'. | |
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable. | markdown |
| confirm_production | No | Required (true) to run on the LIVE production site. |