Delete a theme
wp_delete_themeDelete an installed theme's folder and files. The active theme and its parent theme are refused (wp_activate_theme switches to another theme); a newer version of a theme is installed by wp_update_theme, without deleting it. Returns deleted and stylesheet. Needs delete_themes; refused when DISALLOW_FILE_MODS is set. Permanent: no undo point is recorded. Forwarded by AlphaBridge Connect to the one site this connection reaches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stylesheet | Yes | Exact directory name of an installed theme as wp_list_themes reports it, e.g. "twentytwentyfour". Anything else is refused. |