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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"plugin": "<plugin>"
},
"name": "wp_delete_plugin"
}
}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. |