Added delete branch function