I have a Raspberry Pi 4 running the latest version of Retropie
Which is version ... ?
[..] I deleted the Retroarch.cfg file and now NES and Snes won't allow me access in game to retroarch.
That's never a good idea, since RetroArch would then create a default configuration for the system, which trumps the RetroPie configurations and leads to all sorts of errors.
Any ideas on how to fix? Thanks in advance!
Remove the retroarch.cfg file for the NES/SNES system then immediately re-install the NES/SNES emulators so that RetroPie will add the correct RetroArch configuration - otherwise you'll get into issues again when starting from a stock RetroArch configuration.