Remove a Windows 11 User Account and Keep or Delete Files

Last updated on November 17th, 2026 at 03:13 pm

Accounts you want gone from Windows 11 (24H2 and later, Home or Pro) come in three kinds. A name on the sign-in screen that isn’t yours is a Windows user on this PC, removed under Settings > Accounts > Other users. Your own Microsoft sign-in can’t be deleted while you use it, so you switch to a local account. Email and app logins sit under Email & accounts. None of this closes anyone’s online Microsoft account.

Which kind of account is it?

Open Settings with Windows + I and select Accounts. The page you find the account on tells you what it is and what removing it will do.

Where you see itWhat it isWhere to remove itWhat happens to files on this PC
A name on the sign-in screen, listed under Accounts > Other usersA separate Windows user (local or Microsoft)Other users, or one of the tools further downThat user’s folder in C:\Users is deleted unless you keep it
Your own name and email at the top of Accounts > Your infoThe account you are signed in with right nowSwitch to a local account, then remove the Microsoft one from appsYour files stay where they are
Accounts > Email & accounts, such as an Outlook or Gmail addressAn app or email login, not a Windows userEmail & accountsNo user folder is touched; synced mail on this PC goes
Accounts > Access work or schoolA work or school connectionDisconnect it (IT may need to)Depends on the organization’s policy
Accounts > FamilyA family member managed onlineMicrosoft Family SafetyThe family group changes, not the PC alone

Work and school connections have their own steps in removing a work or school account from Windows 11. A child or partner added through Family is handled by removing Microsoft Family Safety on Windows 11.

If an account appears that nobody in your home created, remove it with the steps below, then check whether someone is accessing your PC remotely.

Remove a user and delete their files

This is the standard route, and it works on every edition. Three things have to be true first. You are signed in as an administrator. You are signed in as someone other than the person you are removing (Windows won’t remove the account in use, so switch users in Windows 11 if needed). And anything worth keeping in that person’s Desktop, Documents, Downloads and Pictures folders has been copied somewhere else, because those folders on this PC are deleted. Files they saved in OneDrive stay in OneDrive.

  1. Press Windows + I to open Settings.
  2. Select Accounts > Other users. Older Windows 11 releases call this page Family & other users.
  3. Under Other users, select the account to expand it.
  4. Next to Account and data, select Remove.
  5. Read the warning and select Delete account and data.
Windows 11 Settings Accounts Other users page with a local account expanded and the Remove button highlighted
Select the account (1), then select Remove (2).

The account leaves the list and the sign-in screen at once. If you are removing an administrator, make sure another administrator account exists first. Select that other account under Other users, select Change account type next to Account options, choose Administrator, and select OK; the full process is in giving a user admin rights in Windows 11. Old devices can clutter a shared PC too, and removing a printer in Windows 11 clears printers nobody uses anymore.

Remove a user but keep the files

Settings offers no keep option. You have two ways around that.

The first is to copy before you delete. Say Jordan moved out and you want his photos. Sign in as yourself, open File Explorer, go to C:\Users\jordan, and copy his Pictures and Documents folders to an external drive or to a new folder such as D:\Jordan files. Then run the Settings steps above. This works for both local and Microsoft accounts.

The second is the older Control Panel route, which can save the main folders for you on a local account:

  1. Press Windows + R, type control, and press Enter.
  2. Select User Accounts, then User Accounts again, then Manage another account.
  3. Select the account, then Delete the account.
  4. Choose Keep Files to have Windows copy that user’s desktop and main folders into a new folder on your desktop, or Delete Files to remove everything.
  5. Select Delete Account to finish.

If any of those links are missing on your PC, use the copy-first method instead. Control Panel pages are slowly moving into Settings, and the exact labels can differ between releases.

What each tool leaves behind

Every tool below removes the sign-in. They differ in what stays on the disk, and that matters if the PC is short on space or about to change hands.

ToolHow to open itEditionsProfile folder in C:\Users
Settings, Other usersWindows + I > AccountsAllDeleted with the account
Control Panel, Delete the accountWindows + R, controlAll (local accounts)Deleted, with an optional Keep Files copy
User Accounts windowWindows + R, netplwizAllCan be left behind
Local Users and GroupsWindows + R, lusrmgr.mscPro, Enterprise, EducationLeft behind
Command Prompt or Terminalnet user commandAllLeft behind
PowerShellRemove-LocalUserAll (local accounts only)Left behind

The command-line tools are useful when Settings won’t open or when you are cleaning up several accounts. To use one:

  1. Right-click Start and select Terminal (Admin), then select Yes at the User Account Control prompt.
  2. Type net user and press Enter to list the user names exactly as Windows stores them.
  3. Type net user "Alex Lee" /delete, using the name from the list, and press Enter. In PowerShell, Remove-LocalUser -Name "Alex Lee" does the same for a local account.
  4. Clean up the folder that stays behind, as described in the leftover-profile section below.

Microsoft documents the syntax on its Remove-LocalUser reference page.

Disable instead of delete

Sometimes you only want an account out of the way for a while. Maybe Priya is away for a semester and her files should be waiting when she gets back. Disabling hides the account from the sign-in screen and blocks sign-in, but keeps every file and setting. To stop using your own Microsoft account for a while, you can also sign out of your Microsoft account in Windows 11 rather than disabling anything.

  1. Open Terminal (Admin) as above.
  2. Type net user "Priya" /active:no and press Enter.
  3. To turn it back on later, run net user "Priya" /active:yes.

On Pro, you can also open lusrmgr.msc, double-click the user, and check Account is disabled. A disabled account still takes up its full space on the drive, so delete it once you know it won’t be needed.

Clean up a leftover profile and sign-in entry

If you used one of the command-line tools, or a removed name still shows up somewhere, the old profile is probably still on the disk. Don’t delete the folder in File Explorer. Windows keeps a matching registry entry, and removing only the folder can leave a broken profile behind. Use the built-in profile tool so both go together:

  1. Press Windows + R, type sysdm.cpl, and press Enter.
  2. On the Advanced tab, under User Profiles, select Settings.
  3. Select the old profile. A removed account often shows as Account Unknown.
  4. Select Delete, then confirm.

Restart the PC afterward. If the name is still on the sign-in screen, check Accounts > Email & accounts and Access work or school for a leftover connection, and remove it there. Microsoft describes the same dialog in deleting a user profile.

Stop using your own Microsoft account on this PC

You can’t remove the account you are signed in with, but you can stop Windows from using it. Switching to a local account keeps your apps and files in place.

  1. Open Settings > Accounts > Your info.
  2. Select Sign in with a local account instead. Microsoft notes that this link shows only when you sign in with a Microsoft account.
  3. If Windows asks you to confirm it’s you, enter your PIN or password.
  4. Enter a user name, a password and a password hint, then select Next. The user name must be different from any other account on this PC.
  5. Select Sign out and finish, then sign back in with the new local account.

Microsoft’s page on switching between local and Microsoft accounts lists the same steps. If the link is still missing, create a new local administrator under Other users, sign in to it, and remove the Microsoft-linked user from there. For signing in day to day, see how to sign in to a local account on Windows 11.

Two more places keep your Microsoft account active after the switch:

  • OneDrive keeps syncing until you open its settings, go to Account, select Unlink this PC, then Unlink account. You can always sign in to OneDrive on Windows 11 again later.
  • Email & accounts lists every app login. For one under Accounts used by email, calendar, and contacts, select it, choose Manage, and select Delete account from this device. For one under Accounts used by other apps, select it and choose Remove.

If the PC is leaving your hands

Selling or donating the PC takes two extra steps. Sign in at account.microsoft.com/devices, find the PC (Microsoft lists the steps in removing a device from your Microsoft account), select Remove device, check the confirmation box, and select Remove. The PC then drops off your device list. Then reset Windows 11 so every account and file is wiped for the next owner. If a company connection still shows on a PC you bought used, you may also need to remove the organization from Windows 11.

Common mistakes and fixes

  • No Remove button appears. You are probably signed in as a standard user, or you are looking at the account you are signed in with. Sign in with an administrator account or ask the PC’s owner.
  • The account is not under Other users. It is either the account you are using now, a family member under Accounts > Family, or an app login under Email & accounts. Go back to the table at the top.
  • It’s the only administrator. Windows needs at least one. Promote another account first.
  • The folder was deleted by hand. If Windows now shows a temporary profile message for a user, remove that user’s entry in sysdm.cpl as shown above.
  • A shared PC at work won’t let you. Accounts on a managed PC are often controlled by IT. Ask them rather than forcing it.
  • A Windows Hello or PIN prompt still mentions the old account. Restart, then check Email & accounts and Access work or school for a leftover connection and remove the old profile in sysdm.cpl as shown above.

Related guides

Questions people ask after removing an account

Can I get the files back after Delete account and data?

Not from Windows itself. There is no undo or Recycle Bin copy. The only way back is a copy you made, a File History or other backup, or files the person kept in OneDrive.

How do I remove an account on Windows 11 Home without lusrmgr.msc?

Home doesn’t include Local Users and Groups. Use Settings, Control Panel, netplwiz, or the net user command instead; they all work on Home.

Does disabling an account free up disk space?

No. Disabling only blocks sign-in. The profile folder stays the same size until you delete the account and its profile.

Can I delete the built-in Administrator account?

No. Windows keeps a hidden built-in Administrator that can’t be deleted, and it is off by default. If someone turned it on, run net user Administrator /active:no in Terminal (Admin) to turn it off again. Turning it on for a repair is covered in enabling the administrator account in Windows 11.

Are the steps different on Windows 10?

The menus differ. Windows 10 users can follow removing a Microsoft account from Windows 10.

Once the old account is gone, you can add another user in Windows 11 for anyone who still needs access. Microsoft’s Manage user accounts in Windows page covers each account type.