delete-category
Remove a WordPress category by specifying its ID and site credentials. Ensures complete deletion without trashing, simplifying category management through programmatic API integration.
Instructions
Delete a WordPress category
Input Schema
Name | Required | Description | Default |
---|---|---|---|
categoryId | Yes | ID of the category to delete | |
force | No | Required to be true, as terms do not support trashing | |
password | Yes | WordPress application password | |
siteUrl | Yes | WordPress site URL | |
username | Yes | WordPress username |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"categoryId": {
"description": "ID of the category to delete",
"type": "number"
},
"force": {
"default": true,
"description": "Required to be true, as terms do not support trashing",
"type": "boolean"
},
"password": {
"description": "WordPress application password",
"type": "string"
},
"siteUrl": {
"description": "WordPress site URL",
"format": "uri",
"type": "string"
},
"username": {
"description": "WordPress username",
"type": "string"
}
},
"required": [
"siteUrl",
"username",
"password",
"categoryId"
],
"type": "object"
}