Delete repository file
delete_fileDelete a file in a GitLab repository and commit the removal. Requires the last commit ID to guard against conflicts and ensure safe deletion.
Instructions
Delete a repository file and commit the deletion. Supply last_commit_id to guard against concurrent edits.
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": {
"project": "<project>",
"path": "<path>",
"branch": "<branch>",
"commit_message": "<commit_message>",
"last_commit_id": "<last_commit_id>"
},
"name": "delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| branch | Yes | ||
| project | Yes | GitLab project ID or full path such as group/project. | |
| author_name | No | ||
| author_email | No | ||
| start_branch | No | ||
| commit_message | Yes | ||
| last_commit_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |