Delete a plugin
delete_pluginPermanently delete an inactive WordPress plugin, removing its files and database tables. Requires explicit confirmation before files are removed.
Instructions
Delete an installed plugin from the server. The plugin must be inactive first. Files are removed permanently; many plugins also drop their database tables on uninstall. Requires confirm: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plugin | Yes | Plugin identifier, e.g. "hello-dolly/hello". | |
| confirm | No | Required — plugin files are permanently removed. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. |