delete-post
Remove unwanted WordPress posts via REST API by specifying site URL, credentials, and post ID. Optionally bypass Trash for permanent deletion.
Instructions
Delete a WordPress post
Input Schema
Name | Required | Description | Default |
---|---|---|---|
force | No | Whether to bypass Trash and force deletion | |
password | Yes | WordPress application password | |
postId | Yes | ID of the post to delete | |
siteUrl | Yes | WordPress site URL | |
username | Yes | WordPress username |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"force": {
"default": false,
"description": "Whether to bypass Trash and force deletion",
"type": "boolean"
},
"password": {
"description": "WordPress application password",
"type": "string"
},
"postId": {
"description": "ID of the post to delete",
"type": "number"
},
"siteUrl": {
"description": "WordPress site URL",
"format": "uri",
"type": "string"
},
"username": {
"description": "WordPress username",
"type": "string"
}
},
"required": [
"siteUrl",
"username",
"password",
"postId"
],
"type": "object"
}