Delete external file

Delete external file. Requires project.integrations.connect; API keys also need delete scope.

Arguments

  • project_referencestring

    Project ID or slug. Requires project.integrations.connect through the caller's own personal provider connection.

  • providerstringrequired

    Storage provider accessed through the caller's own personal connection. A shared project connection is not used. One of onedrive, sharepoint, drive.

  • file_idstring · min length 1 · max length 1024required

    File or folder ID from list_external_files. OneDrive and SharePoint move the item to the recycle bin (status trashed); Google Drive permanently deletes it (status deleted).

  • confirmbooleanrequired

    Must be true: this call replaces or deletes provider data. false refuses the call.

Responses

curl -X POST -N "https://api.veryfront.com/mcp" \  -H "Authorization: Bearer $VERYFRONT_API_KEY" \  -H "Accept: application/json, text/event-stream" \  -H "Content-Type: application/json" \  -d '{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "veryfront__delete_external_file",    "arguments": {      "provider": "onedrive",      "file_id": "string",      "confirm": false    }  }}'
{  "jsonrpc": "2.0",  "id": 1,  "result": {    "content": [      {        "type": "text",        "text": "{\"ok\":true,\"status\":\"deleted\"}"      }    ],    "structuredContent": {      "ok": true,      "status": "deleted"    }  }}

The tool ran; its output is result.structuredContent.