ghl_location_delete
Permanently deletes a sub-account (formerly location) from an agency; requires an agency-level token and lets you also remove its linked Twilio sub-account.
Instructions
REQUIRES AN AGENCY-LEVEL (Company) TOKEN — spec security is Agency-Access-Only. Irreversible: deletes the sub-account; deleteTwilioAccount query param controls whether the attached Twilio sub-account is also torn down. Delete Sub-Account (Formerly Location) Delete a Sub-Account (Formerly Location) from the Agency Endpoint: DELETE /locations/{locationId} (Version header: v3; source: v3/locations-v3.json) Requires an Agency (company-level) token. OAuth scopes: locations.internal-access-only
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": {
"locationId": "<locationId>",
"deleteTwilioAccount": "<deleteTwilioAccount>"
},
"name": "ghl_location_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locationId | Yes | Location Id | |
| deleteTwilioAccount | Yes | Boolean value to indicate whether to delete Twilio Account or not |