Is the code that you are getting an EGR flow code? If so then the only way that I'm aware of to clear it is to get a custom tuner that disables the sensor and that should clear the code. Be the way I run an EGR bypass system as well, although mine was fabricated at the muffler shop, not a commercially bought one.