script to kill branches