Delete file
delete_fileDeletes a file from a repository by creating a commit, requiring owner, repo, path, blob SHA, and commit message.
Instructions
Delete a file in a repository via a commit.
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>",
"sha": "<sha>",
"message": "<message>"
},
"name": "delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | Yes | Blob SHA of the file | |
| path | Yes | ||
| repo | Yes | Repository name | |
| owner | Yes | Repository owner (user or organization) | |
| branch | No | ||
| message | Yes |