Delete file

Delete a file. Requires project.files.write; API keys also need delete scope.

Arguments

  • project_referencestring

    Project ID or slug

  • refstring

    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_idstring

    Legacy branch name or ID alias for ref=branch:<value>. Omit for main.

  • expected_version_idstring

    Expected current source file version ID. Omission disables this guard; a stale version returns a concurrency conflict.

  • file_pathstring

    Path of the file. Send file_path or path, not two different values.

  • pathstring

    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.

  • confirmbooleanrequired

    Must be true to confirm deletion

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_file",    "arguments": {      "confirm": false    }  }}'
{  "jsonrpc": "2.0",  "id": 1,  "result": {    "content": [      {        "type": "text",        "text": "{\"ok\":true}"      }    ],    "structuredContent": {      "ok": true    }  }}

The tool ran; its output is result.structuredContent.