delete branch method