Disconnecting the battery on 96 sunfire will reset the OBD? on 1996 Pontiac Sunfire

The OBD is telling me that the gas cap isn't there. Sometimes works sometimes it doesn't erase it. Can I reset it disconnecting the battery?

Get Your Car Fixed at a RepairPal Certified Shop.
We certify shops based on expertise, quality work, and verified customer reviews
1 answer 1 comment
That will do it! At least for awhile.
Do I have to get it "drive clean ready"? It is for my emission test in Toronto, canada