Dude, if there was such a code to do that, then EVERYONE would have a gameshark, action replay, code breaker, etc. Unfortunately the only way to restore lost data is a MegaMemory cartridge. But no one has those anymore (I do, but eh) So in basis, you're a bit out of luck bro, if your game was deleted. :(
Yo.