IDEX-1579 Fixed branch deletion