Skip to main content
Delete a file from the project.

Tool details

FieldValue
Namedelete_file
GroupFiles

Playground

Input schema

Input schema
{
  "type": "object",
  "properties": {
    "project_reference": {
      "type": "string",
      "description": "Project ID or slug"
    },
    "branch_id": {
      "type": "string",
      "description": "Branch ID (omit for main branch)"
    },
    "path": {
      "type": "string",
      "description": "File path to delete"
    },
    "confirm": {
      "type": "boolean",
      "description": "Must be true to confirm deletion"
    }
  },
  "required": [
    "project_reference",
    "path",
    "confirm"
  ],
  "additionalProperties": false,
  "description": "Input schema for the delete_file tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Output schema

Output schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the returned record."
    },
    "path": {
      "type": "string",
      "description": "The path associated with this tool result."
    },
    "deleted": {
      "type": "boolean",
      "description": "The deleted associated with this tool result."
    }
  },
  "required": [
    "path",
    "deleted"
  ],
  "additionalProperties": false,
  "description": "Structured result returned by the delete_file tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}