wp_delete_post
Remove a WordPress post by ID. Choose to move to trash or force permanent deletion.
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. | |
| id | Yes | The ID of the post to delete. | |
| force | No | Whether to bypass trash and force deletion (default: false, moves to trash). |