cURL
curl --request DELETE \ --url https://api.tela.com/prompt-version/{id}
{ "id": "<string>", "deleted": true }
Deletes a specific prompt version
id
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)
{ "id": "version_uuid", "deleted": true }
Prompt version deleted successfully
The response is of type object.
object