Back up your data, deactivate your Nintendo Account, go to System Settings, choose Formatting Options, and select Initialize Console.