What should be done with ropes exposed to acid or excessive heat?

What should be done with ropes exposed to acid or excessive heat?