ghl_agent_studio_delete
Deletes a GoHighLevel Agent Studio agent and all its versions by agent ID within a sub-account, removing the agent permanently when cleanup is required.
Instructions
Delete Agent Deletes an agent and all its versions. Endpoint: DELETE /agent-studio/agent/{agentId} (Version header: v3; source: v3/agent-studio-v3.json) Requires a Sub-Account (location) token. OAuth scopes: agent-studio.write
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agentId": "<agentId>",
"locationId": "<locationId>"
},
"name": "ghl_agent_studio_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Origin channel attributed to this write for auditing (e.g. public_api, internal) | |
| agentId | Yes | Agent ID to delete (removes the agent and all its versions) | |
| locationId | Yes | Location (sub-account) ID that owns the agent |