The following example describes how to use Delprof.exe to delete user profiles on the local computer that have been inactive for 30 days:

  1. Click Start, point to Programs, point to Accessories, and then click Command Prompt.
  2. At the command prompt, type delprof /p /d:30, and then press ENTER. For each user profile that has not been used on the computer for 30 days, a message is displayed that prompts you to confirm its deletion. For example, you receive a message that is similar to the following message:Delete \\MYCOMPUTER\D$\Documents and Settings\User2? (Yes/No/All)
  3. Complete one of the following actions for each user profile that you are prompted to delete:
    • Type y, and then press ENTER if you want to delete the profile.
    • Type n, and then press ENTER if you do not want to delete the profile.
  4. Type exit, and then press ENTER to quit the command prompt.

Post By Gishore J Kallarackal (2,121 Posts)

Gishore J Kallarackal is the founder of techgurulive. The purpose of this site is to share information about free resources that techies can use for reference. You can follow me on the social web, subscribe to the RSS Feed or sign up for the email newsletter for your daily dose of tech tips & tutorials. You can content me via @twitter or e-mail.

Website: → Techgurulive