SSH command to delete everything in a folder?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Emil
    Confirmed User
    • Feb 2007
    • 5658

    #1

    SSH command to delete everything in a folder?

    What's the SSH-command to delete all files and folder within a folder without having to press "y" for every file and folder?
    Free 🅑🅘🅣🅒🅞🅘🅝🅢 Every Hour (Yes, really. Free ₿itCoins.)
    (Signup with ONLY your Email and Password. You can also refer people and get even more.)
  • kmanrox
    aka K-Man
    • Oct 2001
    • 29295

    #2
    rm -f ./
    Crypto HODLr
    Crypto mining
    Angel investor

    Comment

    • kmanrox
      aka K-Man
      • Oct 2001
      • 29295

      #3
      very tempting to post the wrong command in hopes that you deleted your whole HDD... but alas i couldnt bring myself to do it.
      Crypto HODLr
      Crypto mining
      Angel investor

      Comment

      • Emil
        Confirmed User
        • Feb 2007
        • 5658

        #4
        Do it please, I want to whip everything out. I'm canceling one of my servers.

        Thanks!
        Free 🅑🅘🅣🅒🅞🅘🅝🅢 Every Hour (Yes, really. Free ₿itCoins.)
        (Signup with ONLY your Email and Password. You can also refer people and get even more.)

        Comment

        • DarkJedi
          No Refunds Issued.
          • Feb 2001
          • 28301

          #5
          Originally posted by Emil
          Do it please, I want to whip everything out. I'm canceling one of my servers.
          The FBI forensics unit can restore everything.

          Just saying.

          Comment

          • kmanrox
            aka K-Man
            • Oct 2001
            • 29295

            #6
            to kill your whole hdd, as root, type rm -rf /* or rm-rf / i think works too

            of course there's a few ways to format / kill your whole HDD.. this is one
            Crypto HODLr
            Crypto mining
            Angel investor

            Comment

            • brandonstills
              Confirmed User
              • Dec 2007
              • 1964

              #7
              Originally posted by Emil
              What's the SSH-command to delete all files and folder within a folder without having to press "y" for every file and folder?
              rm -rf foldername

              -r means recursive (all subfolders)
              -f means don't ask me to confirm

              Brandon Stills
              Industry and programming veteran
              [email protected] | skype: brandonstills | ICQ #495-171-318

              Comment

              • peeperpimp
                Confirmed User
                • Aug 2006
                • 5105

                #8
                Originally posted by brandonstills
                rm -rf foldername

                -r means recursive (all subfolders)
                -f means don't ask me to confirm
                Exactly, or from outside the path as soon as you login root

                rm -rf directorypath/nameofdirectorytoberemoved
                ICQ: 377517467
                peeperpimp (at) yahoo (dot) com

                Comment

                Working...