New & free: Delprof2 - User Profile Deletion Tool

Helge Klein's picture

Delprof2 is the inofficial successor to Microsoft's Delprof which does not work with operating systems newer than Windows XP. Here are the main facts:

  • Delprof2 is free to use, commercially or otherwise
  • Delprof2 is syntax compatible to the original Delprof, but more powerful
  • Delprof2 bypasses file system security to delete profiles regardless of current permissions/owner (requires backup/restore privileges)
  • Delprof2 supports very long paths (longer than 260 characters)

What Does it Do?

Delprof2 deletes inactive user profiles. If you want to reclaim disk space just run it without parameters and it will delete all profiles except your own and some special profiles needed by the operating system (like "Default").

Delprof2 has additional filtering options: you might want to delete locally cached copies of roaming profiles only or delete only those profiles that have not been used in a specified number of days. Delprof2 does it all, both on the local system and remotely.

Special Features

Bypassing Security

User profiles often have permissions set on them in such a way that not even administrators have access without prior ACL manipulation. Delprof2 circumvents this requirement by making use of backup and restore privileges to analyze and delete even the most tightly secured profiles.

Long Paths

Some programs store files in paths with more than 260 characters. Most tools cannot deal with such paths that are longer than the value of MAX_PATH (260). Windows Explorer is a prominent example. Delprof2, on the other hand, makes use of special APIs to be able to delete files in the remotest areas of your hard drive.

Syntax and Examples

The program's help screen describes the available options in detail:

Delprof2 by Helge Klein (

Delprof2 deletes inactive Windows user profiles (profiles that are not currently loaded).
Delprof2 is syntax compatible to the original Delprof by Microsoft. Unlike the original it works on Windows 7, too (and XP/2003/Vista/2008).
If possible, Delprof2 uses the backup and restore privileges to bypass security and delete even profiles the executing user does not normally have access to.
Delprof2 has not problem whatsoever deleting files in very long paths (longer than MAX_PATH, 260 characters).
Delprof2 also cleans up stale ProfileList SID.bak registry entires, a common cause of temporary profiles.

Usage: delprof2 [/q] [/i] [/p] [r] [/c:[\]] [/d:]

       /q   Quiet, no confirmation
       /i   Ignore errors, continue deleting
       /p   Prompt for confirmation before deleting each profile
       /r   Delete local caches of roaming profiles only, not local profiles
       /c   Delete on remote computer instead of local machine
       /d   Delete only profiles not used in x days
       /l   List only, do not delete (what-if mode)


Delprof2 /c:computername

       Deletes inactive profiles on 'computername'.

Delprof2 /c:computername /l

       Lists inactive profiles on 'computername' without deleting them.

Delprof2 /d:30

       Deletes profiles older than 30 days on the local computer.

Delprof2 /r

       Deletes locally cached roaming profiles only.

Here is an example of Delprof2 in action:

D:\>DelProf2.exe -c: -p

DelProf2 by Helge Klein (

Delete inactive profiles on ''? (Yes/No) y

Ignoring profile '\\\C$\Dokumente und Einstellungen\All Users' (reason: special profile)
Ignoring profile '\\\C$\Dokumente und Einstellungen\Default User' (reason: special profile)
Ignoring profile '\\\C$\Dokumente und Einstellungen\LocalService' (reason: special profile)
Ignoring profile '\\\C$\Dokumente und Einstellungen\NetworkService' (reason: special profile)
Ignoring profile '\\\C$\Dokumente und Einstellungen\Administrator.WINXP' (reason: in use)

The following user profiles match the deletion criteria:

\\\C$\Dokumente und Einstellungen\administrator.HK
\\\C$\Dokumente und Einstellungen\Helge
\\\C$\Dokumente und Einstellungen\test01
\\\C$\Dokumente und Einstellungen\testlocal
\\\C$\Dokumente und Einstellungen\testlocal2

Delete profile '\\\C$\Dokumente und Einstellungen\administrator.HK'? (Yes/No) y
Deleting profile '\\\C$\Dokumente und Einstellungen\administrator.HK' ...
   ... done.

Delete profile '\\\C$\Dokumente und Einstellungen\Helge'? (Yes/No) n

Delete profile '\\\C$\Dokumente und Einstellungen\test01'? (Yes/No) n

Delete profile '\\\C$\Dokumente und Einstellungen\testlocal'? (Yes/No) n

Delete profile '\\\C$\Dokumente und Einstellungen\testlocal2'? (Yes/No) n


Download Delprof2 here.