wp_delete_media
Permanently delete or trash a WordPress media item by ID, with optional force flag and multi-site targeting.
Instructions
Deletes a media item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the media item to delete. | |
| site | No | The ID of the WordPress site to target (from mcp-wordpress.config.json). Required if multiple sites are configured. | |
| force | No | If true, permanently delete. If false, move to trash. Defaults to false. |