Skip to main content

Delete Media File

Snapshot Catalog Entry

This page is generated from broker tools/list snapshot data.

POSTghl.delete_media_file

Delete a specific file or folder from the media library

Request Body

{
"jsonrpc": "2.0",
"id": "ghl-delete-media-file-example",
"method": "tools/call",
"params": {
"name": "ghl.delete_media_file",
"arguments": {
"id": "id_123",
"tenantId": "tenantId_123",
"confirmApply": "confirmApply_example",
"altType": "location",
"altId": "altId_123"
}
}
}

Arguments Schema

{
"type": "object",
"properties": {
"tenantId": {
"type": "string"
},
"confirmApply": {
"type": "string"
},
"id": {
"type": "string"
},
"altType": {
"type": "string",
"enum": [
"location",
"agency"
]
},
"altId": {
"type": "string"
}
},
"required": [
"id"
]
}

Code Examples

curl -X POST 'https://madpanda3d.com/lab/mad-mcps/portal/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "ghl-delete-media-file-example",
"method": "tools/call",
"params": {
"name": "ghl.delete_media_file",
"arguments": {
"id": "id_123",
"tenantId": "tenantId_123",
"confirmApply": "confirmApply_example",
"altType": "location",
"altId": "altId_123"
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool ghl.delete_media_file executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}