ds_delete_resource
Delete a file or folder by resource ID, using recursive=true to remove a non-empty folder's children first. Deletion is irreversible and can break workflows that reference the resource.
Instructions
Delete a resource (file or folder).
⚠️ Warning: Deletion is irreversible. Resources referenced by workflow tasks will cause those tasks to fail on next execution.
DS behavior: Deleting a non-empty folder returns error 20018. Use recursive=True to delete children first, then the folder.
Args: resource_id: Resource ID recursive: Delete children recursively (for folders, default False)
Returns: {"resource_id", "status", "deleted_children"}
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": {
"resource_id": "<resource_id>"
},
"name": "ds_delete_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recursive | No | ||
| resource_id | Yes |