Use libgit2 to delete remote refs

Use libgit2 to delete remote refs