github_mcp.delete_file
Delete a planned file from an isolated job workspace only after verifying its SHA-256 checksum, returning deletion status and invalidating previews and checks without affecting remote repositories.
Instructions
Remove a planned existing file from the isolated job workspace after verifying its checksum. Returns path and deleted status; invalidates preview and checks. Destructive locally, but does not commit or remove a remote file until separately authorized publication.
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": {
"job_id": "<job_id>",
"path": "<path>",
"expected_checksum": "<expected_checksum>"
},
"name": "github_mcp.delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Planned repository-relative file path to delete. | |
| job_id | Yes | Existing editable job identifier. | |
| expected_checksum | Yes | Current SHA-256 checksum from read_file for this job workspace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| message | No | ||
| error_code | No |