module Gitlab::Client::RepositoryFiles

def remove_file(project, path, branch, commit_message, options = {})

Returns:
  • (Gitlab::ObjectifiedHash) -

Options Hash: (**options)
  • :author_email (String) -- Commit author's email address
  • :author_name (String) -- Commit author's name

Parameters:
  • options (Hash) -- Optional additional details for commit
  • commit_message (String) -- ...a commit message ;)
  • branch (String) -- the name of the branch to commit the deletion to.
  • path (String) -- full path of file to delete.
  • project (Integer, String) -- The ID or name of a project.
def remove_file(project, path, branch, commit_message, options = {})
  delete("/projects/#{url_encode project}/repository/files/#{url_encode path}",
         body: {
           branch: branch,
           commit_message: commit_message
         }.merge(options))
end