delete_file
Delete a file in a Forgejo repository by specifying owner, repo, filepath, and commit message; optionally target a branch and SHA.
Instructions
Delete a file.
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>",
"message": "<message>"
},
"name": "delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | No | ||
| repo | Yes | ||
| owner | Yes | ||
| branch | No | ||
| message | Yes | ||
| filepath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||