Delete a OneDrive file
delete_onedrive_fileRemove a OneDrive file by its ID and move it to the recycle bin for easy recovery. Confirm with the user first to prevent accidental deletion.
Instructions
Delete a OneDrive item — it moves to the OneDrive recycle bin (recoverable there). Pass fileId (from list_onedrive_files) + confirm:true. Confirm the exact file with the user first.
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": {
"fileId": "<fileId>"
},
"name": "delete_onedrive_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | the OneDrive item id | |
| confirm | No | REQUIRED true |