rm-rf equivalent

Welcome Forums General PowerShell Q&A rm-rf equivalent

This topic contains 0 replies, has 1 voice, and was last updated by  Forums Archives 7 years, 8 months ago.

  • Author
  • #5888

    Topics: 1562
    Replies: 0
    Points: 0
    Rank: Member

    by gbritton at 2013-05-08 12:32:42

    I need a way to do the equivalent of a Unix/Linx rm -rf http://linux.die.net/man/1/rm
    command on a given directory. I want to blow away the directory, all of its subdirectories and all files found therein. There may be read-only, hidden and/or system files that also need to be erased.

    What is the correct PowerShell method to do that?

The topic ‘rm-rf equivalent’ is closed to new replies.