Delete a draft theme
delete_draft_themeDiscard a draft theme and its files permanently without affecting the live site. Removes the sandbox copy to free up resources and clean up unused themes.
Instructions
Discard a draft theme and its files. The live site is unaffected — this only removes the sandbox copy.
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. |