Skip to main content
Glama

delete_file

Remove files from GitHub repositories by specifying the file path, commit message, and SHA. This tool helps manage repository content through automated deletion operations.

Instructions

Delete a file from a repository.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYesRepository owner
repoYesRepository name
pathYesFile path to delete
messageYesCommit message
shaYesCurrent blob SHA of the file (get it from get_file_contents)
branchNoBranch name (defaults to default branch)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/software-engineer-mj/github-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server