With the Dodge trucks you can disconnect both batteries, both cables. Then hold the positive and negative cable together off one of the batteries for 10 seconds. This will completly drain the system and clear any codes that it may have. It should work the same with a Duramax.