I flashed AOSP (4.2.2) to a Nexus 7 tablet.
Is there any way that I can recover it back to its factory setting (with the product version of Android)?
Flash back using these stock images:
Factory Images for Nexus Devices