delete_page
Remove a specific page from WordPress using its ID, with an option to force deletion bypassing the trash. Returns a boolean indicating success.
Instructions
Deletes a specific page from WordPress, it will return a boolean value to indicate if the deletion was successful.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
force | No | Whether to bypass the trash and force deletion. Defaults to false. | |
pageId | Yes | The ID of the page to delete. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"force": {
"default": false,
"description": "Whether to bypass the trash and force deletion. Defaults to false.",
"type": "boolean"
},
"pageId": {
"description": "The ID of the page to delete.",
"exclusiveMinimum": 0,
"type": "integer"
}
},
"required": [
"pageId"
],
"type": "object"
}