For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DiscordPlatform
DocumentationIntegrationsAPI referenceSDKsChangelog
DocumentationIntegrationsAPI referenceSDKsChangelog
  • API Reference
      • POSTList prompts
      • POSTCreate a prompt
      • GETRetrieve a prompt
      • PATCHUpdate a prompt
      • DELDelete a prompt
      • POSTCreate a prompt version
      • GETList prompt versions
      • GETRetrieve a prompt version
      • PATCHUpdate a prompt version
      • DELDelete a prompt version
      • POSTCommit a prompt version
      • POSTDeploy a prompt version
      • GETGet prompts summary
      • POSTGet prompts summary with filters
  • Reference
    • Filters API Reference
LogoLogo
DiscordPlatform
API ReferencePrompts

Delete a prompt version

DELETE
https://api.respan.ai/api/prompts/:prompt_id/versions/:version/
DELETE
/api/prompts/:prompt_id/versions/:version/
$curl -X DELETE https://api.respan.ai/api/prompts/prompt_id/versions/3/ \
> -H "Authorization: Bearer sk_live_xxxxx"
Delete a specific prompt version. The currently deployed live version cannot be deleted.
Was this page helpful?
Previous

Commit a prompt version

Next
Built with

Path parameters

prompt_idstringRequired
The unique prompt identifier.
versionintegerRequired
The prompt version number.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error