ghl_affiliate_delete_media
Deletes an affiliate media file or folder for a specific location, removing unwanted media from the affiliate manager by location and media IDs.
Instructions
Delete affiliate media Delete a media file or folder for a location. Endpoint: DELETE /affiliate-manager/{locationId}/media/{mediaId} (Version header: v3; source: v3/affiliate-manager-v3.json) Requires a Sub-Account (location) token. OAuth scopes: affiliate-manager.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": {
"locationId": "<locationId>",
"mediaId": "<mediaId>"
},
"name": "ghl_affiliate_delete_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mediaId | Yes | Media Id | |
| locationId | Yes | Location Id |