delete_file
Removes a file from a GitHub repository by specifying owner, repo, path, blob SHA, and commit message. Optionally targets a branch.
Instructions
Delete a file from a repository
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": {
"owner": "<owner>",
"repo": "<repo>",
"path": "<path>",
"message": "<message>",
"sha": "<sha>"
},
"name": "delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | Yes | The blob SHA of the file being deleted | |
| path | Yes | ||
| repo | Yes | ||
| owner | Yes | ||
| branch | No | Optional branch name | |
| message | Yes | Commit message |