Method: Gitlab::Client::Tags#delete_tag

Defined in:
lib/gitlab/client/tags.rb

#delete_tag(project, tag) ⇒ Gitlab::ObjectifiedHash Also known as: repo_delete_tag

Deletes a repository tag. Requires Gitlab >= 6.8.x

Examples:

Gitlab.delete_tag(3, 'api')
Gitlab.repo_delete_tag(5, 'master')

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • tag (String)

    The name of the tag to delete

Returns:

[View source]

62
63
64
# File 'lib/gitlab/client/tags.rb', line 62

def delete_tag(project, tag)
  delete("/projects/#{url_encode project}/repository/tags/#{url_encode tag}")
end