You Want Your Computer Back to Yourself
You signed into Windows with your Microsoft account years ago. It made sense at the time—syncing settings, buying apps from the Store, using OneDrive. But now, things have changed.
Maybe you’re setting up this PC for a family member and don’t want your files and history mixed in. Perhaps you’re concerned about privacy and prefer a local, offline account. Or you might be preparing to sell or give away the computer and need to scrub your personal identity from it completely.
Whatever the reason, the question is clear: how do you delete a Microsoft account from your computer? The process isn’t as simple as just logging out. It involves disconnecting your online identity from the Windows operating system itself, and the steps differ depending on your ultimate goal.
Understanding What “Delete” Really Means Here
First, it’s crucial to distinguish between two very different actions. Removing your Microsoft account from your computer is not the same as deleting the Microsoft account entirely from the internet.
When you remove the account from your PC, you are simply unlinking it from that specific device. Your email, your OneDrive files (unless they’re stored locally), your Xbox profile—all of that remains active in the cloud. You can still sign into outlook.com, use Office online, or log into the account on another computer.
Deleting the Microsoft account permanently is a nuclear option. It closes your @outlook.com or @hotmail.com email address, erases your associated OneDrive files, and cancels any subscriptions tied to it, like Microsoft 365. This is a separate process done through Microsoft’s account closure portal online.
For most people searching this topic, the goal is the first one: to remove the account’s influence from their local machine. Let’s walk through how to do that correctly.
Switching to a Local Account in Windows
This is the most common and recommended method. You convert your current Microsoft-account-based login into a traditional local user account. This account exists only on this PC, with its own username and password.
Your personal files, desktop background, and some settings will remain. However, features that depend on the cloud will stop syncing. You won’t get new emails in the Mail app automatically, and your OneDrive will disconnect.
Step-by-Step Conversion Process
Open the Settings app by pressing the Windows key + I. Navigate to Accounts, and then select Your info.
On this page, look for the option that says “Sign in with a local account instead.” If you don’t see it, you might be on a version of Windows that lists it under “Account settings.” Click this link.
Windows will ask you to verify your identity. It needs the password for your Microsoft account to proceed. Enter it and click Next.
Now, you’ll create the credentials for your new local account. Choose a username. This can be your first name, a nickname, or anything you prefer—it doesn’t need to be an email address.
You must set a password. Create a strong password and enter it twice. It’s vital to add a password hint that will jog your memory but won’t be obvious to others. Click Next.
The final screen will inform you that all your existing files, apps, and settings will be kept. Click Sign out and finish.
Your computer will sign out of the Microsoft account and return to the lock screen. To log back in, you will use the new local username and password you just created. Your Microsoft account is now removed from the daily login process.
Removing a Microsoft Account From Windows Settings
What if you have multiple accounts on the PC? Perhaps you added a second Microsoft account for the Store or for work email, and you want to remove that one while keeping your primary login.
This process removes an account’s access and data from the system without affecting the account you are currently using to administer the PC.
Go to Settings > Accounts > Email & accounts. Here, you will see a list under “Accounts used by other apps.” This includes the Microsoft account you use to sign in, plus any others you’ve added.
Click on the Microsoft account you wish to remove. A few options will appear. Click the Remove button. A confirmation dialog will pop up.
It will warn you that removing the account will delete associated data from this device, like your cached emails, calendar events, and contact syncing. If you’re sure, click Yes, remove.
The account will disappear from the list. Any app that was using it, like the Mail or Calendar app, will no longer be able to sync until you add a new account.
When You Need a Complete Clean Slate
Sometimes, simply switching accounts isn’t enough. If you’re giving the computer to someone else, performing a factory reset is the most thorough way to remove every trace of your Microsoft account and all your personal data.
This process returns Windows to its original state, as if it just came out of the box. All your files, applications, and settings will be erased.
Using Windows Recovery to Reset This PC
Open Settings again and go to System > Recovery. Under the “Recovery options” section, you will see “Reset this PC.” Click the Reset PC button next to it.
You will be presented with a choice: “Keep my files” or “Remove everything.” For the goal of deleting your account, you must choose Remove everything.
The “Keep my files” option tries to preserve personal data while reinstalling Windows, but it often keeps user accounts intact. “Remove everything” is the clean wipe.
Next, you’ll choose how to reinstall Windows. “Cloud download” fetches a fresh copy from Microsoft’s servers, which is often more reliable. “Local reinstall” uses files already on your PC.
Finally, review the settings. The crucial point is the warning that all your personal files, apps, and settings will be removed. Click Reset to begin.
The computer will restart and begin the lengthy reset process. When it’s done, it will boot into the initial Windows setup screen, where the new owner can create their own account. Your Microsoft account is completely gone from the device.
Common Hurdles and How to Solve Them
You might hit a few roadblocks during this process. Here’s how to navigate the most frequent issues.
What if the “Sign in with a local account” option is grayed out or missing? This usually happens on computers that are managed by an organization, like a workplace or school laptop. These devices are often joined to a Microsoft Azure Active Directory domain, and the local account option is disabled by policy. You’ll need to contact your IT department.
Another common snag is forgetting your Microsoft account password when trying to switch to a local account. You can’t proceed without it. Use Microsoft’s online password recovery tool on another device to reset your password first, then return to the PC and try the conversion again.
After switching, you might find some apps, especially from the Microsoft Store, no longer work or ask for a license. This is because your app licenses are tied to your Microsoft account. You may need to repurchase apps or sign into the Store app separately with the old account to restore access, though this partially re-links the account.
What Happens to Your Data After Removal
It’s important to manage your expectations about what gets deleted locally versus what remains in the cloud.
Files you saved directly to your Desktop, Documents, Pictures, and other user folders will stay on the PC if you only switch to a local account. They are stored on the hard drive, not in the cloud, by default.
OneDrive files are a special case. If you used OneDrive folder backup, your files might exist both online and as placeholder files on your PC. When you remove the Microsoft account, the OneDrive sync will break. The placeholder files will become inaccessible. You must ensure any important files are fully downloaded to your local hard drive before disconnecting the account. The safest method is to copy crucial files from your OneDrive folder to another location on your C: drive, like a new folder called “Backup.”
Your browsing history, saved passwords in Edge, and Windows preferences like your theme and taskbar layout will remain on the PC if you switch accounts, as they are stored locally. If you do a full reset, all of this is erased.
Securing Your Account Before You Part Ways
Before you remove your account, especially if you’re resetting the PC, take two critical security steps.
First, deactivate this PC from your Microsoft account’s trusted devices list. On another device, go to account.microsoft.com/devices. Sign in, find the computer you’re cleaning, and select “Remove” or “Unlink.” This ensures the PC can’t be used to receive security codes for two-factor authentication.
Second, if you used Windows Hello (fingerprint or facial recognition), that biometric data is encrypted and stored on the device’s hardware. A full factory reset should wipe this. However, for absolute certainty, after the reset, you can check your Microsoft account security page to confirm the device is removed.
Your Clear Path Forward
Start by backing up any files you cannot afford to lose. Use an external hard drive or a cloud service different from OneDrive for this backup.
Decide on your goal. To simply stop using the Microsoft account for daily login, use the “Sign in with a local account” method. To remove a secondary account, use the “Email & accounts” removal tool. To erase everything for a new owner, proceed with the “Reset this PC” function and choose “Remove everything.”
Follow the steps for your chosen method, paying close attention to the warnings about data loss. After the process is complete, take a moment to verify the result. Try signing out and back in to see the new login screen. Check that your personal data is either secure or gone, according to your plan.
By carefully following these steps, you regain control over your computer’s identity, ensuring it serves your current needs, whether that’s increased privacy, a fresh start, or a secure handoff to its next user.