Delete external file

veryfront__delete_external_file

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

Access

No external-service connection is required. Use a Veryfront credential with access to the requested resources.

Call type: Can change resources.

Arguments

FieldTypeRequiredDescription and constraints
project_referencestringNoProject ID or slug. Requires project.integrations.connect through the caller's own personal provider connection.
providerstringYesStorage provider accessed through the caller's own personal connection. A shared project connection is not used. Values: "onedrive", "sharepoint", "drive".
file_idstringYesFile 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). Minimum length: 1. Maximum length: 1024.
confirmbooleanYesMust be true: this call replaces or deletes provider data. false refuses the call.

Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.

request.json
{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "veryfront__delete_external_file",    "arguments": {      "provider": "onedrive",      "file_id": "example",      "confirm": true    }  }}

Result

The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.

FieldTypeRequiredDescription and constraints
okbooleanYesValue: true.
statusstringYesdeleted (Google Drive) or trashed (OneDrive and SharePoint recycle bin). Values: "deleted", "trashed".

Full schemas

input-schema.json
{  "type": "object",  "properties": {    "project_reference": {      "type": "string",      "description": "Project ID or slug. Requires project.integrations.connect through the caller's own personal provider connection."    },    "provider": {      "type": "string",      "enum": [        "onedrive",        "sharepoint",        "drive"      ],      "description": "Storage provider accessed through the caller's own personal connection. A shared project connection is not used."    },    "file_id": {      "type": "string",      "minLength": 1,      "maxLength": 1024,      "description": "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)."    },    "confirm": {      "type": "boolean",      "description": "Must be true: this call replaces or deletes provider data. false refuses the call."    }  },  "required": [    "provider",    "file_id",    "confirm"  ],  "additionalProperties": false,  "description": "Arguments for the delete_external_file tool.",  "$schema": "http://json-schema.org/draft-07/schema#"}
output-schema.json
{  "type": "object",  "properties": {    "ok": {      "type": "boolean",      "const": true    },    "status": {      "type": "string",      "enum": [        "deleted",        "trashed"      ],      "description": "deleted (Google Drive) or trashed (OneDrive and SharePoint recycle bin)."    }  },  "required": [    "ok",    "status"  ],  "additionalProperties": false,  "description": "Structured result returned by the delete_external_file tool.",  "$schema": "http://json-schema.org/draft-07/schema#"}