Back to WordPress
Connect Knoon AI with WordPress to automate AI workflows.
Delete a post/page/custom post type item by postId or slug.
wordpressXmlRpcDefaultDefaultDeletePost
BETA
Internal
Permissions
There are no items to display.
Optional permissions
There are no items to display.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| postType | mustache | Optional collection slug. Defaults to posts. | No |
| postId | mustache | WordPress post ID. Either postId or slug is required. | No |
| slug | mustache | Post slug. Either postId or slug is required. | No |
| force | boolean | Force delete. Defaults to TRUE. | No |
Returns
| Name | Type | Description |
|---|---|---|
| deleted | bool | True when deleted. |
| postId | string | Deleted post ID. |
| status | string | Previous post status. |