If you reset your PC by selecting the “Remove everything” option, all your data, along with the user accounts, is deleted. In this case, you have to set up your PC from scratch. On the other hand, if ...
This process is called a clean install, which is ironic as there's nothing particularly clean about it: Microsoft has enshittified Windows Setup.
Getting locked out of your Windows 11 PC when you don't know the password can be frustrating, but regaining access is easier than you might think. The process you should use depends on how you set up ...