Delete an existing reference.
This method works for both direct and symbolic references. The reference will be immediately removed on disk but the memory will not be freed. Callers must call git_reference_free.
git_reference_free
The reference to remove
0 or an error code