Skip to contentSkip to page list

Docs

Delete Tags

Delete a prompt tag definition and cascade to assignments

DELETE/api/v1/prompts/tags/{tag}
Request and response examples
request.py
import osimport requests​origin = "https://app.langwatch.ai"path = "/api/v1/prompts/tags/<tag>"api_key = os.environ["LANGWATCH_API_KEY"]headers = {    "X-Auth-Token": api_key,}​response = requests.delete(    origin + path,    headers=headers,)print(response.json())

Success

application/json · No fields specified

api-reference/prompts/delete-tags

Authorization

X-Auth-Tokenstringheaderrequired

Project API key for sending traces and accessing project-scoped resources. Format: sk-lw-... (no underscore). Obtain one by creating a project via the Admin API or the LangWatch UI.

Path parameters

tagstringrequired

Responses

200

Success

application/json

anyNo properties are declared in the schema.
204

Tag deleted

400

Bad Request

application/json

errorstringrequired
messagestring
401

Unauthorized

application/json

errorstringrequired
messagestring
422

Unprocessable Entity

application/json

errorstringrequired
messagestring
500

Internal Server Error

application/json

errorstringrequired
messagestring

Documentation