Delete a draft theme
delete_draft_themeDiscard a draft theme's files permanently while keeping the live site unchanged. Use to clean up sandbox theme copies.
Instructions
Discard a draft theme and its files. The live site is unaffected — this only removes the sandbox copy.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"theme": "<theme>"
},
"name": "delete_draft_theme"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | Yes | Draft theme id to discard. | |
| confirm | No | Required — draft files are removed permanently. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. |