Delete a reference entry
Code Mode: praxis.studio.codexes.entries.delete
HTTP: DELETE /studio/v1/codexes/{codex}/entries/{entry}
Delete one entry from a library, which also removes the mentions and the links that pointed at it. Units that claimed it keep their text; only the reference goes away. This cannot be undone, so confirm the name of the entry before deleting it, and prefer changing its tracking setting to never when it should stop reaching writers but stay recorded.
Signature
praxis.studio.codexes.entries.delete(args:{path:{/** e.g. "cdx_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ codex:string;/** e.g. "乌江日报" */ entry: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 |
|---|---|---|---|---|
| codex | path | string | yes | Reference library being addressed, given by its cdx_ identifier; a library has no name-based address, so read the library list first when only the name is known. |
| entry | path | string | yes | Entry being addressed, by its name inside this library or by its ent_ identifier; a name containing a slash is passed by identifier instead. |
Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | The deletion confirmation; the entry and its aliases are gone from the library. |
| 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 | CODEX_NOT_FOUND or ENTRY_NOT_FOUND means the library or the entry name inside it names nothing reachable; read the entry list and use a name it returns, or pass the entry identifier. |
| 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. |