Delete a prompt
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.
BearerAuthAuthorizationBearer <token>An instance admin key from ADMIN_API_KEYS, or an organization key (elmo_…) issued from the dashboard.
promptId*stringThe ID of the prompt to delete
uuidPrompt deleted (returns the deleted prompt)
application/json- response
id*stringUnique identifier for the prompt
uuidbrandId*stringBrand identifier this prompt belongs to
value*stringThe actual prompt text
enabled*booleanWhether the prompt is currently enabled
tags*array<string>User-defined tags for categorizing this prompt
systemTags*array<string>Auto-computed system tags (e.g., 'branded', 'unbranded'). Read-only.
createdAt*stringTimestamp when the prompt was created
date-timeupdatedAt*stringTimestamp when the prompt was last updated
date-timepremiumModels*array<string>Models this prompt is tracked on grounded. Each entry spends one premium pairing.
deletedRunsCount*integerNumber of related prompt_runs rows deleted by the cascade.
curl -X DELETE 'https://app.elmohq.com/api/v1/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
}