delete_media
Delete previously uploaded media from the 1msg Chat API by numeric mediaId. Use this canonical endpoint to remove files returned by uploadMedia when they are no longer needed.
Instructions
Delete previously uploaded media by numeric mediaId (from /uploadMedia).
This is the canonical deletion endpoint and uses the REST DELETE verb on the
media resource path. The older POST /deleteMedia is a deprecated alias.
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": {
"mediaId": "<mediaId>"
},
"name": "delete_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mediaId | Yes |