Remove a deploy label from an agent
import requests
url = "https://app.langwatch.ai/api/v1/agents/{agentId}/labels/{label}"
headers = {"X-Auth-Token": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-Auth-Token': '<api-key>'}};
fetch('https://app.langwatch.ai/api/v1/agents/{agentId}/labels/{label}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://app.langwatch.ai/api/v1/agents/{agentId}/labels/{label} \
--header 'X-Auth-Token: <api-key>'{
"label": "<string>",
"removed": true
}Agents
Remove a deploy label from an agent
DELETE
/
api
/
v1
/
agents
/
{agentId}
/
labels
/
{label}
Remove a deploy label from an agent
import requests
url = "https://app.langwatch.ai/api/v1/agents/{agentId}/labels/{label}"
headers = {"X-Auth-Token": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-Auth-Token': '<api-key>'}};
fetch('https://app.langwatch.ai/api/v1/agents/{agentId}/labels/{label}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://app.langwatch.ai/api/v1/agents/{agentId}/labels/{label} \
--header 'X-Auth-Token: <api-key>'{
"label": "<string>",
"removed": true
}Authorizations
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
The agent id.
Minimum string length:
1The deploy label, for example production.
Required string length:
1 - 64Last modified on November 3, 2026
Was this page helpful?