Delete a plugin
delete_pluginRemove an installed WordPress plugin permanently after deactivating it. Confirmation required; files and database tables are deleted.
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. |