when uninstalling any installed game , they ask you if you want to remove the game with the save or just the game
you can remove the game alone , there is an option to back up Digital/cia games on 3DS
but , if you installed the same game from another region , it mostly won't be compatible with the old save