IDEX-1579 Fixed branches deletion