Delete an existing branch reference.
Name of the branch to be deleted; this name is validated for consistency.
Type of the considered branch. This should be valued with either GIT_BRANCH_LOCAL or GIT_BRANCH_REMOTE.
0 on success, GIT_ENOTFOUND if the branch doesn't exist or an error code.