Delete project resource

veryfront__delete_project_resource

Requires project.files.write.

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
resource_idstringYesThe resource id associated with this record. Minimum length: 1.
confirmbooleanNoSend true to confirm the deletion. A call without it is refused and deletes nothing.
source_target_kindstringNoThe source to write: project (the default) or preview_branch. Values: "project", "preview_branch".
target_branch_idstring or nullNoThe preview branch to write. Required with preview_branch and not accepted with project.

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.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__delete_project_resource",
    "arguments": {
      "resource_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.

Full schemas

json
{
  "type": "object",
  "properties": {
    "project_reference": {
      "type": "string",
      "description": "Project ID or slug"
    },
    "resource_id": {
      "type": "string",
      "minLength": 1,
      "description": "The resource id associated with this record."
    },
    "confirm": {
      "type": "boolean",
      "description": "Send true to confirm the deletion. A call without it is refused and deletes nothing."
    },
    "source_target_kind": {
      "type": "string",
      "enum": [
        "project",
        "preview_branch"
      ],
      "description": "The source to write: project (the default) or preview_branch."
    },
    "target_branch_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "description": "The target branch id associated with this record."
        },
        {
          "type": "null",
          "description": "Provide the target branch id."
        }
      ],
      "description": "The preview branch to write. Required with preview_branch and not accepted with project."
    }
  },
  "required": [
    "resource_id"
  ],
  "additionalProperties": false,
  "description": "Structured delete project resource input schema for MCP tools.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}
json
{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "const": true
    }
  },
  "required": [
    "ok"
  ],
  "additionalProperties": false,
  "description": "Structured result returned by the delete_project_resource tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}