delete_file
Remove a file from a repository by providing its path and blob SHA, then commit the deletion with a message. Specify owner, repo, and 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>",
"filepath": "<filepath>",
"sha": "<sha>",
"message": "<message>"
},
"name": "delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Owner/username | |
| repo | Yes | Repository name | |
| filepath | Yes | File path in the repository | |
| sha | Yes | Blob SHA of the file to delete | |
| message | Yes | Commit message for the deletion | |
| branch | No | Branch name |