ghl_media_delete_file
Deletes a specific file or folder from GoHighLevel media storage using its ID and location token, allowing unwanted media assets to be removed.
Instructions
Delete File or Folder Deletes specific file or folder from the media storage Endpoint: DELETE /medias/{id} (Version header: v3; source: v3/medias-v3.json) Requires a Sub-Account (location) token. OAuth scopes: medias.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": {
"id": "<id>",
"altType": "<altType>",
"altId": "<altId>"
},
"name": "ghl_media_delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| altId | Yes | location Id | |
| altType | Yes | AltType |