Delete a writing style
Code Mode: praxis.studio.styles.delete
HTTP: DELETE /studio/v1/styles/{style}
Delete a style, which detaches it from every work and draft that used it; those units then stop receiving its samples and glossary in their context packs. This cannot be undone, so confirm the style identifier before deleting it, and read the work first when it is not certain which style it uses.
Signature
praxis.studio.styles.delete(args:{path:{/** e.g. "sty_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ style: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 |
|---|---|---|---|---|
| style | path | string | yes | Style being addressed, by its sty_ identifier; a style has no name-based address, so read the style list first when only the name is known. |
Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | The deletion confirmation; the style no longer exists for later attaches. |
| 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 | STYLE_NOT_FOUND means no style in this organization has that identifier; read the style list and pass one of its identifiers. |
| 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. |