Skip to main content
DELETE
cURL

Delete a Prompt Version

This endpoint deletes a specific prompt version by its ID.

URL Parameters

Examples

Response

The response includes a confirmation of the deletion.

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