Save data is stored on the game cartridge/disc, not the console (mostly). You usually cannot fully "wipe" the game to factory state.
Forcing deletion via unofficial tools can corrupt the disc/cartridge or console firmware. Research your specific title first (GameFAQs, Reddit).
Best practice: Just start a new file and ignore the old one.