Delete a prompt

DELETE
/prompts/{promptId}

Permanently delete a prompt and cancel all related scheduled jobs. This will also cascade delete all associated prompt runs.

Requires an instance admin key; organization keys receive 403. The dashboard has no delete either — stop tracking a prompt with PATCH /prompts/{promptId} and enabled: false, which keeps its history and frees the plan slot.

Authorization

BearerAuth
AuthorizationBearer <token>

An instance admin key from ADMIN_API_KEYS, or an organization key (elmo_…) issued from the dashboard.

In: header

Path Parameters

promptId*string

The ID of the prompt to delete

Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/prompts/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "brandId": "string",  "value": "string",  "enabled": true,  "tags": [    "string"  ],  "systemTags": [    "string"  ],  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "premiumModels": [    "string"  ],  "deletedRunsCount": 0}