Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking to delete a bunch of folders and files that I think was created under a different account with admin privalages. I don't want to log out of my current user and re-login under that admin account.

How can I delete those folders & files as a different user?

IE: Is there a command via the command line that I can specify a different user account & password to delete those files recursively?

share|improve this question
up vote 2 down vote accepted

You can use the runas command from command prompt or a run screen:

type windows key-r (to open run window) runas /user:UserNameHere Explorer .


type windows key - r (to open run window) runas /user:UserNameHere cmd


open a command prompt runas /user:UserNameHere del

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.