Deletes a file from a GitLab repository by creating a new commit. Use this action when you need to remove a file from a project's repository on a specific branch. This action is irreversible — the file will be removed from the specified branch, though it remains in the git histo…
branchRequiredstringName of the branch where the file will be deleted.
file_pathRequiredstringURL-encoded full path to the file to delete (e.g., 'lib/class.rb' or 'docs/readme.md').
project_idRequiredThe ID or URL-encoded path of the project.
author_namestringThe commit author's name. If not provided, uses the authenticated user's name.
author_emailstringThe commit author's email address. If not provided, uses the authenticated user's email.
start_branchstringName of the base branch to create the new branch from. Used when the target branch doesn't exist yet.
commit_messageRequiredstringCommit message describing the file deletion.
last_commit_idstringLast known commit ID for the file. Used to detect concurrent modifications. If provided and the file has been modified since this commit, the deletion will fail.
dataRequiredData from the action execution
errorstringError if any occurred during the execution of the action
successfulRequiredbooleanWhether or not the action execution was successful or not
OAuth connection. Risk level 2 of 5.
Free Action
No published Skills explicitly reference this Action yet.