modx_delete_media_folder
Delete a folder and its contents within a media source by specifying the source ID or name and the folder path, removing unwanted media directories.
Instructions
Delete a folder (and its contents) inside a media source. source = id/name, path = folder 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_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| source | Yes |