Settings
Delete a User Account in Windows 11 Without Losing Files
Written by Windows 11 Field Guide Editorial Team · Updated

You might want to delete a user account in Windows 11 when a family member gets their own PC, an old test account is cluttering the sign-in screen, or you are preparing a laptop to hand on. The removal itself takes a few clicks, but it also deletes everything stored in that account’s folders on the PC, so the important part is what you do before you click.
This guide covers the Settings method, the Control Panel method that can keep files, the command line, and the usual reasons the Remove button does not work. The steps apply to Windows 11 Home and Pro.
What deleting an account removes
Every account on a PC has its own profile folder, for example C:\Users\sam, holding its Desktop, Documents, Downloads, Pictures, Music, Videos, app settings and browser data. When you remove the account in Settings, Windows deletes its sign-in and that data. Microsoft’s account management page says removing an account removes its sign-in information and data from the device.
What it does not remove:
- The Microsoft account online. Email, OneDrive, purchases and the account itself are untouched. Closing a Microsoft account is a separate process on Microsoft’s website.
- Files in OneDrive. The cloud copies stay; only the local copies on this PC go.
- Apps installed for all users. Desktop programs installed for everyone stay installed.
Before you start: save the files
- Sign in as an administrator (not the account you are removing).
- Open File Explorer and go to C:\Users. Open the account’s folder; Windows may ask for permission, so select Continue.
- Copy anything worth keeping to an external drive or to a folder in your own profile.
- If the person uses OneDrive, check on the web that their files are there before you delete the local account.
Microsoft’s Windows Backup app can also back up an account’s folders to OneDrive, as long as you run it while signed in to that account. If you are clearing out a PC to give away, Reset this PC with Remove everything is a better choice than deleting accounts one by one.
Method 1: delete a user account in Settings
- Press Win+I to open Settings.
- Select Accounts, then Other users. (Typing ms-settings:otherusers in the Run box opens the same page.)
- Under Other users, select the account to expand it.
- Next to Account and data, select Remove.
- Read the warning and select Delete account and data.
The account disappears from the sign-in screen straight away. If the account is a member of your Microsoft family group, it may appear under Accounts > Family instead; to stop a family member signing in on this PC without changing the family group, use the option for that member on the Family page, and manage the group itself at family.microsoft.com.
Method 2: Control Panel, with Keep Files
The older Control Panel route is useful because it offers to save some of the person’s files for you.
- Open Control Panel and select User Accounts, then User Accounts again.
- Select Manage another account and choose the account.
- Select Delete the account.
- Choose Keep Files to save the account’s Desktop, Documents, Favourites, Music, Pictures and Videos into a folder on your desktop, or Delete Files to remove everything.
- Select Delete Account to confirm.
Keep Files does not save everything, such as email stored in desktop mail apps or app settings, so copy anything else you need first.
Method 3: the command line
For local accounts, an administrator can use net user:
- Right-click Start and select Terminal (Admin).
- Run net user to list the local accounts.
- Run net user sam /delete, replacing sam with the account name.
This removes the account but can leave its folder behind in C:\Users. Remove the profile afterwards from System Properties: press Win+R, type sysdm.cpl, open the Advanced tab, select Settings under User Profiles, select the unused profile and choose Delete. On Windows 11 Pro, lusrmgr.msc (Local Users and Groups) also lets you delete local accounts.
Remove button greyed out or missing
- You are signed in to that account. Sign out, sign in as another administrator and try again.
- You are not an administrator. Only administrators can remove accounts. Microsoft’s page shows how to change an account type under Account options > Change account type.
- It is the last administrator. Before removing an admin account, make sure at least one other account on the PC is an administrator, or you can lose the ability to change settings or install software.
- It is a work or school account. Accounts added through Access work or school are disconnected there, and a PC managed by an organisation may block removal; ask your IT team.
Removing an email or app account instead
Sometimes the “account” you want gone is not a Windows user at all but an email or app sign-in, such as a second Microsoft account used by Mail or Store. Those live under Settings > Accounts > Email & accounts; select the account and choose Remove. That does not affect any user’s files.
After the account is gone
Restart the PC and check the sign-in screen. If you were removing an old account because of a name you no longer want, see change user name in Windows 11 for a less drastic fix. To keep the remaining accounts secure, review Windows Hello sign-in options and our Windows 11 security hub, and if you are moving to a local account rather than a Microsoft one, see switch to a local account.
Frequently asked questions
Does deleting a user account delete the Microsoft account?
No. Microsoft says removing an account from the PC removes its sign-in information and data from that device only. The Microsoft account itself, with its email and OneDrive, keeps working.
Why can't I remove my own account?
Windows will not delete the account that is currently signed in. Create or use another administrator account, sign in with it, and remove the old one from there.
Are files in OneDrive deleted too?
Files stored in OneDrive stay in the cloud. Only the copies on this PC are removed with the account. Files that were only on the PC are deleted unless you save them first.
Can I undo deleting a user account?
No. Once the account and its data are deleted, Windows has no undo. Restore files from a backup, then create a new account if needed.
Sources
Windows 11 Field Guide Editorial Team
Editorial team
The Windows 11 Field Guide team writes and updates independent Windows 11 guides and checks each step against Microsoft's documentation and the current Settings app.




