Open the Settings app. Select Accounts from the left-hand menu. Click Email & accounts on the drop-down menu. Select the Microsoft account that you’d want to remove from beneath “Accounts used by other apps.” Select Remove from the drop-down menu. Agree to delete your account by selecting Yes from the drop-down list.

Go to “Settings > Accounts > Email & Accounts” and delete the account you wish to cancel. Now click on the Remove button for the specific account you choose.

Type netplwiz in the run dialogue box that appears. press ENTER. Select the User account from the drop-down menu. Select Delete from the drop-down menu. Check to see whether the account is deleted correctly.