Delete media
delete_mediaRemove a media file by its ID. Deletes the file from storage and detaches it from all posts.
Instructions
Delete a media file by ID. Removes the file from storage and detaches it from any posts. Use this when the user wants to delete a media file.
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 | The media file ID to delete. |