libgit2

git_reference_delete

Version:

Delete an existing reference

This method works for both direct and symbolic references.

The reference will be immediately removed on disk and from memory. The given reference pointer will no longer be valid.

Signature

int git_reference_delete(git_reference *ref);

Parameters

In
ref

The reference to remove

Returns

int

0 or an error code

Versions