modx_delete_media_file
Delete a file from a MODX media source by providing the source ID or name and the file path, so unwanted media assets can be removed accurately.
Instructions
Delete a file inside a media source. source = id/name, path = file path within the source.
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": {
"source": "<source>",
"path": "<path>"
},
"name": "modx_delete_media_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| source | Yes |