wp_delete_content
Delete WordPress posts, pages, or products by moving them to trash. Set force=true to permanently erase content.
Instructions
Delete a WordPress post, page, or product. By default moves to trash; use force=true to permanently delete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Post ID to delete | |
| type | Yes | Post type | |
| force | No | Permanently delete instead of trashing (default: false) |