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?

Asked by for the 1996 Pontiac Sunfire
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