Delete (trash) a post or page
wp_content_deleteDelete WordPress posts or pages by ID, moving them to trash by default; use force=true with confirm='delete' to permanently remove them.
Instructions
Moves to trash by default. force=true bypasses trash forever and requires confirm:"delete".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| type | No | post | |
| force | No | ||
| confirm | No | Must be "delete" when force=true |