Caroate delignification enhancement by halides