Delete a user account through Settings

The fastest way to remove a user account from Windows 10 is through the Settings app. Open Settings by pressing the Windows key and typing "Settings", then select the Settings app from the results. Go to Accounts, then select Other people from the left menu.

Find the account you want to delete in the list. Click on it once to select it, then click the Delete button that appears below. Windows will ask you to confirm — click Delete account and data. The account and all files stored in that user's folder will be permanently removed from your computer.

This method works only if you are signed in as an administrator. If you are not an admin on this computer, you will not see the Delete button, and you will need to ask whoever set up the computer to remove the account for you.

Key Takeaways

  • You must be signed in as an administrator to delete any user account on Windows 10.
  • Deleting an account through Settings removes both the account and all files in that user's folder permanently.
  • If you want to keep the files but remove the account, copy them to another folder before you delete the account.
  • A Microsoft account linked to the computer requires you to remove the link before deletion in some cases.

What happens to files when you delete an account

When you delete a user account through Settings, Windows removes the entire user folder, which contains the Desktop, Documents, Downloads, and Pictures folders for that account. Any files saved only in that user's folder are deleted and cannot be recovered through Windows.

Before you delete an account, check whether that user has files you need to keep. Open File Explorer, navigate to C:\Users, and look inside the folder with the account name. If there are files you want to save, copy them to a different location — such as the Documents folder of your own account or an external drive — before you proceed with deletion.

Removing a Microsoft account before deletion

If the account you are deleting is connected to a Microsoft account (the kind used to sign in with an email address), Windows may ask you to remove that connection first. You will see a message saying the account is connected to a Microsoft account.

To disconnect it, go back to Settings > Accounts > Other people, click the account, and select Remove instead of Delete. This removes the Microsoft account connection but leaves the local Windows account on the computer. You can then delete the local account afterward if you want to remove it completely.

Deleting an account you are currently signed into

You cannot delete the account you are currently using. If you need to delete your own account, you must first sign in as a different administrator account. If no other administrator account exists on the computer, you will need to create one first.

To create a temporary administrator account, go to Settings > Accounts > Other people and select Add someone else to this PC. Choose I don't have this person's sign-in information, then Add a user without a Microsoft account. Give it a straightforward name like "Temp Admin". After you create it, go back to Other people, click the new account, and select Change account type. Set it to Administrator. Sign out of your account, sign into the temporary one, delete your original account, and then delete the temporary account.

Using Command Prompt to delete an account

If Settings does not work or you prefer using the command line, you can delete an account through Command Prompt. Right-click the Start button, select Windows Terminal (Admin) or Command Prompt (Admin), and type the following command: net user accountname /delete (replace "accountname" with the actual name of the account).

Press Enter, and Windows will ask you to confirm. Type Y and press Enter again. The account will be deleted when ready. This method also removes all files in that user's folder, so copy any files you need to keep before you run this command.

Troubleshooting account deletion problems

If you see an error message when trying to delete an account, the most common reason is that you are not signed in as an administrator. Check your account type by going to Settings > Accounts > Your info. If it says "Standard user", ask an administrator to delete the account for you, or have them change your account type to Administrator first.

Another common issue is that the account is still in use — perhaps a program is running under that account, or files are open. Close all programs and sign out of the account completely before you try to delete it. If you still see an error, restart your computer and try again while signed in as a different administrator account.

Frequently Asked Questions

Can I recover files after deleting a user account?

Files deleted with the account are permanently removed by Windows and cannot be recovered through the operating system. If you need those files, you would need to use data recovery software, which may or may not work depending on how long ago the account was deleted and what has been written to the drive since then.

What is the difference between deleting and disabling an account?

Deleting removes the account and all its files permanently. Disabling keeps the account on the computer but prevents anyone from signing into it. If you might need the account again later, disabling is safer. To disable an account, go to Settings > Accounts > Other people, click the account, and select Change account type to Standard user, then remove admin rights if it has them.

Do I need to uninstall programs before deleting a user account?

Programs installed under a specific user account are usually still available to other users. However, some programs store settings in the user folder and may not work the same way after deletion. If a program is important, check whether it needs to be reinstalled or reconfigured after the account is removed.

Can I delete the administrator account?

You can delete an administrator account only if at least one other administrator account exists on the computer. Windows requires at least one administrator account to remain. If you are the only administrator, create a new administrator account first, then delete your own account.