DELETE
/
prompt-version
/
{id}
curl --request DELETE \
  --url https://api.tela.com/prompt-version/{id}
{
  "id": "<string>",
  "deleted": true
}

Delete a Prompt Version

This endpoint deletes a specific prompt version by its ID.

URL Parameters

ParameterTypeDescription
idstringThe ID of the prompt version to delete

Examples

const promptVersionId = 'version_uuid'

const response = await fetch(`https://api.tela.ai/prompt-version/${promptVersionId}`, {
  method: 'DELETE',
  headers: {
    'Authorization': `Bearer ${process.env.TELA_API_KEY}`,
    'Content-Type': 'application/json'
  }
})

const result = await response.json()
console.log(result)

Response

The response includes a confirmation of the deletion.

{
  "id": "version_uuid",
  "deleted": true
}

Notes

  • Deleting a promoted prompt version will remove it from being available for use in completions.
  • If a prompt has only one version, you may not be able to delete it without first deleting the entire prompt.
  • Deleted prompt versions cannot be recovered. Make sure you want to permanently remove the version before calling this endpoint.

Path Parameters

id
string
required

Response

200 - application/json
Prompt version deleted successfully
id
string
deleted
boolean