Skip to content
中文

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

NameInTypeRequiredDescription
themepathstringyesTheme 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

StatusContent typesDescription
200application/jsonThe deletion confirmation; the theme no longer appears in the theme list.
400application/jsonINVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
401application/jsonThe API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
404application/jsonTHEME_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.
500application/jsonINTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.