delete_file
Remove a file from a repository branch. Dry run mode provides a preview before committing the deletion.
Instructions
Delete a file from a repository. dry_run=true by default. This is destructive on the branch.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"file_path": "<file_path>",
"branch": "<branch>",
"commit_message": "<commit_message>"
},
"name": "delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID | |
| file_path | Yes | File path in repository | |
| branch | Yes | Branch to commit the deletion to | |
| commit_message | Yes | Commit message | |
| dry_run | No | Dry run mode (default: true). When true, returns a preview of the action without executing it. Set to false only after user confirmation. |