capabilities.work

Delete a file

One step with GitLab. We can help you get access.

Get something done

Delete a file

with GitLab
Works with AI assistants

Use GitLab: its GitLab REST Files API lets you delete a file in a single step (DELETE /api/v4/projects/{id}/repository/files/{file_path}). GitLab also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • How do I remove a file from a repository?
  • Can I delete a file in a branch and commit the change?
Say it to your AI assistant
  • Delete {file_path} from project {id} in branch {branch} with message {commit_message}.
  • Remove {file_path} in {id} on {branch} using commit {commit_message}.
For your developer

DELETE /api/v4/projects/{id}/repository/files/{file_path} in GitLab REST Files API. Full spec on APIs.io.