Delete uploaded media file
delete_media_filePermanently delete one uploaded file belonging to the current account, using its URL from list_uploaded_files or the gallery. Refuses files referenced by any post, including drafts, scheduled posts and published posts; never detaches media and has no force override. Deletes the storage object and its upload/library records.
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": {
"url": "<url>"
},
"name": "delete_media_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the file, exactly as returned by list_uploaded_files or the gallery. |