cant remember for sure, but I dont think its much more than leaving the battery disconnected overnight. plus depending on what code it is, if it was just a one time thing, it could reset itself if it isnt a persistent problem after a few run cycles.
if your close enough, most auto parts places such as advance auto, or auto zone will read the codes for free, but usually wont clear them for you.