ghl_location_delete
Delete a sub-account (location) from an agency using an agency-level token. Optionally, also delete the attached 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) OAuth scopes: locations.internal-access-only
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locationId | Yes | Location Id | |
| deleteTwilioAccount | Yes | Boolean value to indicate whether to delete Twilio Account or not |