def delete(*args)
      arguments(args, required: [:user, :repo, :path]) do
        assert_required %w[ path message sha ]
      end

      delete_request("/repos/#{arguments.user}/#{arguments.repo}/contents/#{arguments.path}", arguments.params)
    end
def delete(*args)
      arguments(args, required: [:user, :repo, :path]) do
        assert_required %w[ path message sha ]
      end

      delete_request("/repos/#{arguments.user}/#{arguments.repo}/contents/#{arguments.path}", arguments.params)
    end
Delete a file

 This method deletes a file in a repository

 @param [Hash] params
 @option params [String] :path
   Requried string. The content path
 @option params [String]
 @option params [String] :message
   Requried string. The commit message.
 @option params [String] :sha
   Required string. The blob SHA of the file being replaced.
 @option params [String] :branch
   The branch name. If not provided, uses the repository’s
   default branch (usually master)

 Optional Parameters

 The :author section is optional and is filled in with the
 :committer information if omitted. If the :committer
 information is omitted, the authenticated user’s information is used.

 You must provide values for both :name and :email, whether
 you choose to use :author or :committer. Otherwise, you’ll
 receive a 500 status code.

 Both the author and commiter parameters have the same keys:

 @option params [String] :name
   The name of the author (or commiter) of the commit
 @option params [String] :email
   The email of the author (or commiter) of the commit

 @example
  github = Github.new
  github.repos.contents.delete 'user-name', 'repo-name', 'path',
    path: 'hello.rb',
    message: "delete hello.rb file",
    sha: "329688480d39049927147c162b9d2deaf885005f"