It takes 40 drive cycles to clear a code. What I have done in the past is to disconnect the vehicle's battery for an hour or so, then start it again. When you start it,the tach, speedometer and gauges will go all the way over and pin, then go to nothing then they will all read normal, This says the codes are cleared.
Another issue which can occur. The in-tank fuel pump has a screen in the intake port. If it gets crap on it, the fuel flow goes bananas. If it runs rough or refuses to start, smack the fuel tank bottom a few times. If it starts, take the fuel pump out and clean the screen. Happened to me on another car I had.