Hallouu,
I sold my Nintendo Switch and forgot to reset everything.
Can the buyer reset the console without my password?
And if so, what happens if I delete my Nintendo account now, can he still reset the console?
Yes, he can reset it without PW and what you do with your account does not matter.
He has to turn off the console, keep both volume buttons pressed and then press the power button, then you can reset the console.