What is the file or program to wipe a cortex? And where can I find it?
To restore a cortex to factory settings, including the VEX default code, use the VEXnet firmware upgrade utility available on this page.
To just remove all the ROBOTC user programs, re-download the ROBOTC firmware.