96

How can I delete the local user profile on a Windows 7 machine that is connected to a Windows Server 2008 domain?

DelProf doesn't seem to exist on Windows 7.

MartinHN
  • 1,083
  • 1
  • 9
  • 10

4 Answers4

137

You can do it with the User Profiles dialog in System Properties:

  • Log in as different user (with admin privileges) than you want to delete
  • Open Properties for Computer
  • Advanced system settings (on the left side)
  • Settings for User Profiles (in the middle)
  • Select the profile you want to delete and click the delete button

Deleting local user profiles

Martijn Heemels
  • 465
  • 2
  • 8
Markus
  • 1,434
  • 1
  • 10
  • 2
36

To clear user local profile via registry:

  1. Click Start → Run → Regedit

  2. Navigate to the following registry key :HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

  3. Under ProfileList navigate to binary key’s like this: S-1-5-21-3656904587-1668747452-4095529-500

  4. On the right side under ProfileImagePath you'll see the profile path.

  5. Chose the one with the desired user and delete the long registry key like: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

You will then need to either rename (preferable), or delete the user profile on disk under C:\Users\%username%

clhy
  • 6,283
  • 8
  • 34
  • 66
Cyrus
  • 361
  • 3
  • 2
  • 2
    This official Microsoft [KB156826](https://support.microsoft.com/en-us/help/156826/how-to-disable-and-delete-user-profiles) confirms what you're saying, but goes further saying you can remove `ProfileList` key in regedit to delete ALL profiles if you desire which is a little surprising to me! – gregg Aug 20 '19 at 20:47
18

I have developed an unofficial successor to Microsoft's Delprof called Delprof2. It is syntax compatible to the original but more powerful.

user66001
  • 1,228
  • 3
  • 14
  • 26
Helge Klein
  • 469
  • 1
  • 5
  • 13
  • Great piece of software! – Zac B May 30 '12 at 14:57
  • Fantastic! Have been looking for a delprof replacement. – pelms Jul 05 '12 at 09:18
  • 1
    Hi Helge, I tested your tool but there is a problem about "not old enough" user thing. The antivirus scan make 1 year old users seems that is active. Is something I'm missing or we can't do anything about it? – emirjonb Jul 30 '15 at 08:17
7

GPO: Computer Configuration \ Policies \ Administrative Templates \ System \ User Profiles This seems the perfect answer for deleting old domain usersenter image description here

emirjonb
  • 680
  • 4
  • 13