Delete a rendition theme
Code Mode: praxis.studio.themes.delete
HTTP: DELETE /studio/v1/themes/{theme}
Delete a theme this organization created. A built-in theme belongs to the platform and cannot be deleted, so this answers THEME_NOT_FOUND for one. Renditions already produced with the theme keep their output, because the produced file no longer depends on the theme. This cannot be undone.
Signature
praxis.studio.themes.delete(args:{path:{/** e.g. "thm_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ theme:string}}):Promise<{/** Always true, which is what tells a caller the deletion landed rather than that the resource was already missing. */ deleted:boolean}>;Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| theme | path | string | yes | Theme being addressed: a saved one by its thm_ identifier, or a built-in one by its key; the identifier is what the theme list returns for an organization’s own theme. |
Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | The deletion confirmation; the theme no longer appears in the theme list. |
| 400 | application/json | INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call. |
| 401 | application/json | The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header. |
| 404 | application/json | THEME_NOT_FOUND means no theme in this organization has that identifier; read the theme list for the platform and pass one of its identifiers, since a built-in theme cannot be changed or deleted. |
| 500 | application/json | INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed. |