delete_post
Delete a WordPress post by ID. Choose to move it to trash or permanently delete.
Instructions
Delete a post in WordPress site.
If force=false, post is moved to trash. If force=true, post is permanently deleted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Whether to permanently delete (true) or move to trash (false) - default: false | |
| post_id | Yes | ID of the post to delete |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||