DSi/3DS: System Settings → Format System Memory. Wipes everything—all games, saves, eShop licenses, NNID. Only if selling console.
Start fresh guilt-free—your old pups are safe in the Hotel.