gitlab api pro icon

gitlab api pro

Extended GitLab node

File → Delete

AI-generated

Summary

Removes a file from the specified GitLab repository branch.

Inputs

  • path (required) — Path to the file to delete, for example 'src/index.ts'.
  • fileBranch (required) — Branch to commit to. Default: main.
  • commitMessage (required) — Commit message for the deletion.

Output shape

No return body — returns the execution metadata of the item processed.

The operation uses a DELETE request to the GitLab API repository/files endpoint with branch and commit message in the body.

Examples

Example 1: Delete a configuration file from the main branch

Path: config/settings., Branch: main, Commit Message: Remove legacy config

Example 2: Clean up temporary files on a feature branch

Path: tmp/build.log, Branch: feature/login, Commit Message: Clean up build logs

Links

Discussion