Skip to main content
DELETE
/
ai-agents
/
agents
/
{uid}
Delete BYO Agent
curl --request DELETE \
  --url https://{appid}.api-{region}.cometchat.io/v3/ai-agents/agents/{uid} \
  --header 'apikey: <api-key>'
{
  "success": true,
  "message": "Agent with UID '863f3501-af1b-46c1-9740-5c725b85daba' has been deleted successfully"
}

Authorizations

apikey
string
header
required

API Key (i.e. Rest API Key from the Dashboard).

Path Parameters

uid
string
required

Unique identifier of the agent

Response

200 - application/json

Agent deleted successfully

success
boolean
required

Indicates whether the operation was successful

Example:

true

message
string
required

Human-readable result message

Example:

"Operation completed successfully"