Delete file

veryfront__delete_file

Requires project.files.write; 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
refstringNoContent selector: main or branch:<name-or-id>. Omit for main. Release and environment snapshots are read-only. Supplied aliases must name the same content.
branch_idstringNoLegacy branch name or ID alias for ref=branch:<value>. Omit for main.
expected_version_idstringNoExpected current source file version ID. Omission disables this guard; a stale version returns a concurrency conflict.
file_pathstringNoPath of the file. Send file_path or path, not two different values.
pathstringNoFile path whose deletion appends a deletion version in main or the selected branch; immutable history remains. URL-encode this path when supplied in a REST URL.
confirmbooleanYesMust be true to confirm deletion

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_file",    "arguments": {      "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.

Full schemas

input-schema.json
{  "type": "object",  "properties": {    "project_reference": {      "type": "string",      "description": "Project ID or slug"    },    "ref": {      "type": "string",      "description": "Content selector: main or branch:<name-or-id>. Omit for main. Release and environment snapshots are read-only. Supplied aliases must name the same content."    },    "branch_id": {      "type": "string",      "description": "Legacy branch name or ID alias for ref=branch:<value>. Omit for main."    },    "expected_version_id": {      "type": "string",      "description": "Expected current source file version ID. Omission disables this guard; a stale version returns a concurrency conflict."    },    "file_path": {      "type": "string",      "description": "Path of the file. Send file_path or path, not two different values."    },    "path": {      "type": "string",      "description": "File path whose deletion appends a deletion version in main or the selected branch; immutable history remains. URL-encode this path when supplied in a REST URL."    },    "confirm": {      "type": "boolean",      "description": "Must be true to confirm deletion"    }  },  "required": [    "confirm"  ],  "additionalProperties": false,  "description": "Arguments for the delete_file tool.",  "$schema": "http://json-schema.org/draft-07/schema#"}
output-schema.json
{  "type": "object",  "properties": {    "ok": {      "type": "boolean",      "const": true    }  },  "required": [    "ok"  ],  "additionalProperties": false,  "description": "Structured result returned by the delete_file tool.",  "$schema": "http://json-schema.org/draft-07/schema#"}