You can try the following procedures in the links below explain how to remove a Microsoft account from your Windows 10 PC: Click the Start button, and then click Settings. Click Accounts, scroll down, and then click the Microsoft account you would like to delete. Click Remove, and then click Yes. Please let me know if this helped and works. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.