How can I remove the home folder for a deleted user on windows 7?

I have deleted a user, but I was never prompted if I wanted to delete the home folder for this user. Now, when I try to delete the folder as another user in the administrator group, I get a message that I need permission from some ID string.

How can I delete this user's home folder?


  • In Control Panel → System click Advanced system settings.
  • In the User Profiles group click Settings….
  • Select the entry labeled "Account Unknown".
  • Click Delete.

You can directly load the User Profiles dialog by running the following command:

rundll32 sysdm.cpl,EditUserProfiles

You can also use WMI for deleting orphaned profile folders, e.g. via PowerShell:

Get-WmiObject Win32_UserProfile -Filter 'RefCount=0' | ForEach-Object {
    $_.Delete()
}