# How to Delete a User Account in Windows 10

> Remove a user account in Windows without losing their files, why you cannot delete the last administrator, and how to clean up the leftover profile folder.

- Source: https://zepe.online/guides/delete-user-account-windows-10
- Author: Robert Moca (https://zepe.online/author/robert-moca)
- Topic: Accounts and security
- Published: 2026-07-13T09:00:00+00:00
- Updated: 2026-08-08T09:00:00+00:00
- Author: Zepe editorial team (https://zepe.online/editorial-standards)
- Image: https://zepe.online/img/delete-user-account-windows-10-featured-45efe1600c.webp

## The short answer

Go to **Settings → Accounts → Family & other users**, click the account, choose **Remove**, then **Delete account and data**. Back up `C:\Users\theirname` first, because that folder goes with the account.

## Key takeaways

- Removing an account through Settings deletes its profile folder and everything in it, with no Recycle Bin stage.
- Copy anything you want to keep out of C:\Users\theirname before you start — this is the step people regret skipping.
- You cannot delete the account you are signed into, and you cannot leave the machine with no administrator.
- Deleting a Microsoft account from a PC removes local access only; the account itself continues to exist.

Deleting an account takes about thirty seconds, and it is one of the very few things in Windows that destroys a large amount of data behind a single confirmation with no undo afterwards. The mechanics are trivial. The preparation is the entire job, so please do not skip the next section.

> **Careful — Take the files first**
>
> **Delete account and data** removes `C:\Users\theirname` entirely — desktop, documents, downloads, pictures, browser profile and saved passwords. It does not go to the Recycle Bin. Copy anything wanted to another folder or an external drive, and verify the copy, before you touch the Remove button.

## Before you delete: rescue the data

### Back up the account's files

1. Sign in as an administrator other than the account you are removing.
2. Open `C:\Users\theirname` in File Explorer.
   You will get an access prompt — click Continue. As an administrator you can grant yourself access.
3. Copy Desktop, Documents, Downloads, Pictures, Videos and Music somewhere safe.
   Selection shortcuts are in the guide on [selecting multiple files](https://zepe.online/guides/select-multiple-files-windows).
4. Turn on hidden items and check `AppData` if the person used desktop email, saved game data or a local database.
   AppData is hidden by default; see [showing hidden files](https://zepe.online/guides/show-hidden-files-windows). Thunderbird profiles, save games and application data all live there and are easy to forget.
5. Open something from the copy to confirm it is intact.
   A copy that failed halfway looks identical in File Explorer until you try to use it.

## Deleting the account

### Remove a user from Settings

1. Open **Settings → Accounts → Family & other users** (Windows 11: **Other users**).
2. Click the account you want to remove, then click **Remove**.
3. Read the warning and click **Delete account and data**.
   This is the point of no return. There is no confirmation after it and no recovery.
4. Wait — a large profile can take a few minutes to remove.
   The account disappears from the list immediately; the folder deletion continues in the background.

Control Panel offers a slightly different route with one useful extra: **User Accounts → Manage another account → Delete the account** asks whether to **Keep Files** or **Delete Files**. Keep Files copies the account's desktop and documents to a folder on your desktop before removing the account, which is a helpful safety net if you did not do the backup step.

## When Windows refuses

**Why the Remove button is missing or fails**

| Situation | Why | What to do |
| --- | --- | --- |
| It is the account you are signed into | Windows cannot delete an account in use | Sign in as another administrator |
| It is the only administrator | The machine would have no admin | Promote another account first |
| Remove button is greyed out | You are a standard user | Sign in as an administrator |
| It is the built-in Administrator | Protected system account | Disable it instead: `net user administrator /active:no` |
| It is a work or school account | Managed by an organisation | Accounts → Access work or school → Disconnect |
| It is a family member's account | Managed at family.microsoft.com | Remove from the family group online first |

The last-administrator rule is the one people run into most. Windows requires at least one enabled administrator account, so promote another account first — Settings → Accounts → Family & other users → the account → **Change account type** → Administrator. Then sign into that account and delete the original from there.

## Microsoft accounts: removing versus deleting

Worth being clear about, because people worry: removing a Microsoft account from a PC removes it from this machine and nothing else. The account itself, its email, its Store purchases and its OneDrive files all carry on existing, and it can sign in on any other device tomorrow.

Two things to check before removing one. **OneDrive**: if files were syncing, confirm they have finished uploading before deleting the local profile, or unsynced changes are lost. **BitLocker**: if the drive is encrypted and the recovery key was saved to that Microsoft account, retrieve it from account.microsoft.com/devices first. Losing access to both the account and the key means losing the drive.

**Figure: What removing an account does and does not affect**

The distinction matters most for OneDrive: files already synced to the cloud survive, files that had not finished uploading do not.

| | Deleted from this PC | Survives elsewhere |
| --- | --- | --- |
| C:\Users\theirname and everything in it | yes | no |
| Locally saved browser passwords | yes | if synced |
| The Microsoft account itself | no | yes |
| Files already synced to OneDrive | no | yes |
| Files not yet uploaded | yes | no |
| Microsoft Store purchases | no | yes |

## Cleaning up what gets left behind

Account removal sometimes leaves the profile folder behind. One file held open by a running process at the wrong moment is enough to do it. What you are left with is several gigabytes sitting in `C:\Users` belonging to an account that no longer exists, which is easy to miss when you next wonder where your disk space went.

### Remove an orphaned profile properly

1. Press **Win + R**, type `sysdm.cpl` and press Enter.
   This is System Properties, the same dialog used for environment variables.
2. Go to **Advanced → User Profiles → Settings**.
3. Look for an entry marked **Account Unknown** and click **Delete**.
   This removes both the folder and its registry entry, which is what deleting the folder by hand does not do.
4. If the folder still remains, delete it in File Explorer as an administrator.
   Restart first if it refuses — a background process is holding a file open.

Deleting the folder directly without going through User Profiles leaves a registry entry behind in the ProfileList key. On its own that is harmless, but if an account with the same name is later created, Windows sees the stale entry and creates a profile at a different path — `name.PC-NAME`, which is the usual explanation for that odd folder name appearing.

## Alternatives to deleting

- **Disable it instead.** From an elevated prompt, `net user theirname /active:no` hides the account from the sign-in screen and keeps every file. Reverse it with `/active:yes`. This is the right choice when someone might come back.
- **Demote it.** If the concern is administrator rights rather than the account existing, change the account type to Standard; see the guide on [creating a user account](https://zepe.online/guides/create-user-account-windows-10) for what that actually restricts.
- **Change the password.** If the concern is access rather than the data, the guide on [changing a Windows password](https://zepe.online/guides/change-windows-password-and-pin) covers doing that as an administrator.

> **Editor's note — On selling or giving away the machine**
>
> Deleting accounts is not how you prepare a PC to give away, and I have seen people assume it is. The right operation is a full reset with the *Remove everything* and *Clean data* options, which the guide on [factory resetting Windows](https://zepe.online/guides/factory-reset-windows-7-8) covers, including the uncomfortable detail that even that is not a certified secure wipe.

## Common questions

### Does deleting a user account delete their files?

Yes. **Delete account and data** removes `C:\Users\theirname` entirely — documents, desktop, downloads, browser profile and saved passwords, and it does not go to the Recycle Bin. Copy anything you want to keep before you start. Control Panel's route offers a **Keep Files** option that saves the desktop and documents to a folder first.

### Why can't I delete an administrator account?

Either you are signed into it — Windows cannot delete an account currently in use, or it is the only administrator on the machine. Promote another account to administrator, sign into that one, and then delete the original. The built-in Administrator account is protected and can only be disabled, not removed.

### Does removing a Microsoft account from my PC delete the account?

No. It removes access on that machine only. The Microsoft account, its email, its Store purchases and its OneDrive files all continue to exist and can sign in elsewhere. Check that OneDrive has finished syncing first, though, because anything not yet uploaded goes with the local profile.

### How do I remove a leftover user folder in C:\Users?

Use System Properties rather than File Explorer: **Win + R**, `sysdm.cpl`, **Advanced → User Profiles → Settings**, find the *Account Unknown* entry and click Delete. That removes the registry entry as well as the folder, which prevents the odd `name.PC-NAME` folder appearing if the account is ever recreated.

## Sources

- [Create a local user or administrator account in Windows](https://support.microsoft.com/en-us/windows/create-a-local-user-or-administrator-account-in-windows-20de74e0-ac7f-3502-a866-32915af2a34d) — Microsoft Support. Supports: Account management through Settings, including changing account type and the requirement to retain an administrator.
- [net user — Windows commands reference](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/net-user) — Microsoft Learn. Supports: The `/active:no` switch used to disable an account instead of deleting it, and the built-in Administrator account.

## Related guides

- https://zepe.online/guides/create-user-account-windows-10
- https://zepe.online/guides/change-administrator-name-windows-10
- https://zepe.online/guides/factory-reset-windows-7-8

---

© 2026 Zepe. Windows is a trademark of Microsoft Corporation; this site is not affiliated with Microsoft.
