Method: Gitlab::Client::RepositoryFiles#remove_file
- Defined in:
- lib/gitlab/client/repository_files.rb
permalink #remove_file(project, path, branch, commit_message, options = {}) ⇒ Gitlab::ObjectifiedHash
Removes an existing repository file.
114 115 116 117 118 119 120 |
# File 'lib/gitlab/client/repository_files.rb', line 114 def remove_file(project, path, branch, , = {}) delete("/projects/#{url_encode project}/repository/files/#{url_encode path}", body: { branch: branch, commit_message: }.merge()) end |