I on occasion would get an EGR code, and it was recommended to me to use a wire hanger fashioned in a way that you can scrape away some of the deposits in the line leading to the exhaust.
When I did this I used a micro vacuum attachment ( to clean computers with) to suck up the deposits. Of course you could detach the line.....heh hindsight! Anyway, then I replaced the gasket and put the EGR back on.
If I ever have problem with it again... I'll try the cleaner.