files
Delete a file in a repository
Deletes a specified file in a repository. Use the Commits API to delete multiple files with a single request.
delete/api/v4/projects/{id}/repository/files/{file_path}
Request
- Base URLhttps://gitlab.com
- Authnone declared
Path parameters
idstring required
The project ID
file_pathstring required
The URL-encoded path to the file.
Query parameters
branchstring required
Name of the branch to commit into. To create a new branch, also provide start_branch.
commit_messagestring required
Commit message
start_branchstring
Name of the branch to start the new commit from
author_emailstring
The email of the author
author_namestring
The name of the author
last_commit_idstring
Last known file commit id
Response
Delete a file in a repository
Changes
No recorded changes to this operation across all 5 revisions of this API.