This article explains how to reset a Nintendo Switch or Nintendo Switch Lite. The steps for resetting a Switch OLED are slightly different.
How to Factory Reset Your Nintendo Switch and Make It Work Like New Again! (Easy Method)
If your console won’t boot or wake from sleep, perform a hard reset first. If you’re selling or giving it away, reset it to factory settings first. Here’s how.
First, turn off your Nintendo Switch. Then, while the system is turned off, press and hold the power button until the console resets. This step may take up to 15 seconds.
Release the power button and then press it again to boot the console normally.