libgit2

git_tag_delete

Version:

Delete an existing tag reference.

The tag name will be checked for validity. See git_tag_create() for rules about valid names.

Signature

int git_tag_delete(git_repository *repo, const char *tag_name);

Parameters

In
repo

Repository where lives the tag

const char *
In
tag_name

Name of the tag to be deleted; this name is validated for consistency.

Returns

int

0 on success, GIT_EINVALIDSPEC or an error code

Versions