wp_delete_post
Delete a WordPress post by ID, moving it to trash or removing it permanently with force. Confirms the action and reports the result for safe content management.
Instructions
Deletes a WordPress post with options for trash or permanent deletion. Includes safety confirmations and detailed feedback on the deletion action.
Usage Examples:
• Trash a post: wp_delete_post --id=123 (moves to trash)
• Permanent deletion: wp_delete_post --id=123 --force=true
• Bulk operations: Use multiple calls with different IDs
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | The ID of the WordPress site to target (from mcp-wordpress.config.json). Required if multiple sites are configured. |