Fortunately, there is a way to remove your Microsoft account from your Windows PC without completely factory resetting it and losing any of your data. That said, you do have to jump through a few ...
To completely remove a Microsoft account from Windows 11, you need to scrub it from the Accounts section of the Settings app. Choose "Email and accounts" Select your Microsoft account Click "Remove" ...