Eat away at (something)

To rot or destroy something.

The mildew has been eating away at the window frame all year.