Deletes an existing branch reference.
If the branch is successfully deleted, this object is not useful anymore and if should be freed with unref.
a Branch.