mainwp_plugins_delete
Delete a deactivated plugin from a WordPress site to remove unused components. Specify the site ID or domain and the plugin slug.
Instructions
Delete a plugin from a WordPress site (must be deactivated first)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site ID (number) or domain name (e.g., "1" or "pavinglist.com") | |
| slug | Yes | Plugin slug to delete (e.g., "akismet/akismet.php") | |
| dry_run | No | Simulate the operation without making changes (defaults to MAINWP_ENABLE_DRY_RUN_BY_DEFAULT) |