Skip to main content
DELETE
/
ai-agents
/
agent-builder
/
agents
/
variables
/
custom
/
{variableId}
Delete Custom Variable
curl --request DELETE \
  --url https://{appid}.api-{region}.cometchat.io/v3/ai-agents/agent-builder/agents/variables/custom/{variableId} \
  --header 'apikey: <api-key>'
{
  "success": true,
  "message": "Variable deleted successfully"
}

Authorizations

apikey
string
header
required

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

Path Parameters

variableId
string
required

Variable ID to delete

Response

200 - application/json

Custom variable deleted successfully

success
boolean
required

Indicates whether the operation was successful

Example:

true

message
string
required

Human-readable result message

Example:

"Operation completed successfully"