πŸͺŸ Sysadmin Β· SOP

Remove a Windows User Profile

A complete, field-tested standard operating procedure for safely removing a corrupted or stale Windows user profile via the registry, file system, and proper session sequencing.

26 March 2026 Β· By Richard Gamarra Β· Windows 10/11 Registry IT Support
πŸ“‹

Overview

A Windows user profile is a collection of settings, files, and registry entries that define a user's environment on a specific machine. Over time, profiles can become corrupted, orphaned after domain account removal, bloated with stale data, or locked by access permission errors, all of which can prevent a user from logging in successfully.

This SOP covers the complete manual removal process: identifying and deleting the profile's registry entry, removing the physical folder from C:\Users\, and ensuring the user can re-authenticate with a clean, freshly generated profile. This procedure is applicable to Windows 10 and Windows 11 in both domain-joined and standalone environments.

⚠️ This procedure requires local Administrator or Domain Admin privileges. Perform it on behalf of the affected user, never while they are actively logged in to the machine.
πŸ”

Prerequisites

Administrator Access Local admin or domain admin rights on the target machine.
User is Logged Off The affected user's session must be fully terminated before starting.
User Data Backed Up Confirm Desktop, Documents, Downloads, and AppData are backed up if needed.
Registry Editor Access regedit.exe must not be restricted by Group Policy.
Known Username / SID Know the exact Windows username or SID of the profile to remove.
Change Window Approved If in a managed environment, ensure a change window is open before proceeding.
βš™οΈ

Step-by-Step Procedure

1
Confirm the User is Logged Off
Session Management Β· Required before all other steps

Before touching the registry or file system, verify the target user has no active session on the machine. An open session locks profile files and registry hives, which will cause errors or incomplete deletion.

  • Open Task Manager β†’ Users tab and confirm the user is not listed.
  • Alternatively, run the command below in an elevated Command Prompt:
CMD (Run as Administrator)
query user /server:localhost

If the user appears, right-click β†’ Log off in Task Manager, or use:

logoff <session_id>
ℹ️ If the machine is remote, use Remote Desktop Services Manager or quser /server:<hostname> to check for active sessions.
2
Open Registry Editor and Navigate to ProfileList
Registry Β· HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

The ProfileList key stores a subkey for each user profile registered on the system. Each subkey is named after the user's Security Identifier (SID).

  • Press Win + R, type regedit, and press Enter.
  • Accept the UAC prompt if it appears.
  • Navigate to the following path:
Registry Path
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
πŸ’‘ You can paste the path directly into the Registry Editor address bar (Windows 10 v1703+ and Windows 11) for faster navigation.
3
Locate and Delete the User's Profile Key
Registry Β· Identify the correct SID subkey

Under ProfileList, expand each SID subkey and look at the ProfileImagePath value to identify the correct user. It will show the path to the user's folder, such as C:\Users\jdoe.

  • Click each SID subkey to expand it.
  • Look at the ProfileImagePath string value on the right pane.
  • When you find the target user's path, note the full SID key name.
  • Right-click the SID subkey β†’ Delete.
  • Confirm the deletion when prompted.
Example: ProfileImagePath value
C:\Users\jdoe
🚨 Critical: Only delete the subkey that maps to the target user. Deleting the wrong SID will corrupt another user's profile. Double-check the ProfileImagePath before deleting.

If the SID key has a duplicate with a .bak suffix (e.g., S-1-5-21-...-1001.bak), delete both.

πŸ’‘ To find a user's SID without searching manually, run: wmic useraccount where name="jdoe" get sid
4
Reboot the Machine
System Restart Β· Clears registry hive handles

A full system reboot is required before removing the user's folder. Windows holds an open handle to the user's registry hive (NTUSER.DAT) even after the session ends. The reboot releases this lock.

  • Close Registry Editor.
  • Perform a full Restart (not Shutdown + Power On, which may resume a hibernate state).
  • Log back in with an Administrator account after restart.
shutdown /r /t 0
⚠️ Do not skip the reboot. Attempting to delete C:\Users\<username> before a reboot will result in file in use errors for NTUSER.DAT and UsrClass.dat.
5
Delete the User's Profile Folder
File System Β· C:\Users\<userID>

With the registry entry removed and the machine rebooted, you can now safely delete the physical profile directory from the file system.

  • Open File Explorer and navigate to C:\Users\.
  • Locate the folder matching the user's login name (e.g., jdoe).
  • Right-click the folder β†’ Delete. If access is denied, use an elevated Command Prompt.
Elevated CMD: Force Delete
rmdir /s /q "C:\Users\jdoe"
🚨 Warning: This action is irreversible. All local data in this folder will be permanently deleted. Ensure the backup requirement from the Prerequisites section has been satisfied.

If you encounter permission errors on specific subfolders (e.g., AppData\Local\Temp), take ownership first:

takeown /f "C:\Users\jdoe" /r /d y icacls "C:\Users\jdoe" /grant administrators:F /t rmdir /s /q "C:\Users\jdoe"
6
Have the User Log On to Generate a New Profile
Verification Β· Fresh profile creation

Once the old registry key and folder have been removed, Windows will automatically create a new, clean profile the next time the user logs in. This is the built-in self-healing mechanism for profile regeneration.

  • Have the user log off any other sessions they may have open.
  • The user logs back on to the target machine using their credentials.
  • Windows will display: "Please wait while Windows sets up your profile…"
  • A fresh C:\Users\<username> folder and NTUSER.DAT will be created automatically.
  • Verify Desktop, Start Menu, and basic applications are functioning correctly.
βœ… Success indicator: The user's profile folder reappears in C:\Users\ with today's timestamp, and a new SID entry is visible in ProfileList in the registry.
⚑

Best Practices & Warnings

πŸ’Ύ
Always Back Up First

Before deleting any profile folder, ensure critical data (Desktop, Documents, Downloads, browser profiles, Outlook PST files) has been backed up to a network share or cloud storage.

πŸ”’
Use a Dedicated Admin Account

Never perform this operation using the affected user's own account. Always use a separate local or domain admin account to avoid profile lock conflicts.

πŸ“Έ
Export Registry Key Before Deleting

Right-click the SID key β†’ Export to save a .reg backup before deletion. This allows recovery if the wrong key is removed.

πŸ”
Full Restart, Not Hybrid Shutdown

Use Restart rather than Shutdown + Power On. Windows Fast Startup (hybrid boot) does not fully reload the kernel, and file locks may persist.

🧩
Check for Roaming Profile Conflicts

In domain environments with roaming profiles, also clean up the server-side profile copy to prevent the old corrupted data from syncing back on next logon.

πŸ“‹
Document the Change

Log the action in your ITSM/ticketing system including the machine name, username, date/time, and the admin account used. This is important for audit trails.

❓

Frequently Asked Questions

Can I use System Properties to remove a profile instead of manually editing the registry?
Yes. Navigate to System Properties β†’ Advanced β†’ User Profiles β†’ Settings. Select the profile and click Delete. This method automates registry and folder removal, but it may fail on corrupted or locked profiles, in which case this manual SOP is the fallback.
What if I see a ".bak" version of the SID key in ProfileList?
A .bak key typically appears when Windows failed to load the original profile and created a temporary one. Delete both the original SID key and the .bak variant to ensure a fully clean state.
Will this procedure remove the user's Active Directory account?
No. This SOP only removes the local cached profile on the specific machine. The user's Active Directory account, mailbox, and domain credentials remain completely intact.
What if rmdir fails with "Access Denied" even after a reboot?
Use the takeown and icacls commands shown in Step 5 to take ownership and grant full control before retrying rmdir. In rare cases, booting from a WinPE environment may be required.
Can I automate this process for multiple machines?
Yes. PowerShell scripts using Get-WmiObject Win32_UserProfile and the .Delete() method, or tools like PDQ Deploy, can automate profile removal at scale across managed endpoints.
How long does the new profile creation take on first logon?
Typically 30 seconds to 2 minutes on modern hardware. In domain environments with Group Policy application, folder redirection, and software deployment, it may take 3-10 minutes on the first logon after profile recreation.
πŸ”—

References