Delete a plugin
wp_delete_pluginDelete an installed plugin by its file path as wp_list_plugins lists it (e.g. akismet/akismet.php); an active plugin is deactivated first, and WordPress runs the plugin's uninstall routine, which can remove its settings and data. Permanent: no undo point is recorded; switching a plugin off without removing it is wp_deactivate_plugin. Returns deleted and plugin. Needs delete_plugins; refused when DISALLOW_FILE_MODS is set. AlphaBridge itself (AlphaBridge MCP, AlphaBridge MCP Pro, the owner drop-in) is refused here, because deleting it would end this connection or take tools away from it, and its uninstall can remove the connections, settings and undo points as well; it is deleted in wp-admin under Plugins. Forwarded by AlphaBridge Connect to the one site this connection reaches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plugin | Yes | Exact plugin file of an installed plugin as wp_list_plugins lists it, e.g. "akismet/akismet.php". A folder name alone or an unknown file is refused. |