NOOB question: Deleting many folders when they have files in them

Discussion in 'Site & Server Administration' started by offthedome, Nov 8, 2007.

  1. #1
    I hate the fact that I can't delete folders en masse because I use a linux server. Now I accidentally uploaded about 250 folders, all with files, that I need to delete. I don't want to go through and work it folder by folder. How do I delete the folders?
     
    offthedome, Nov 8, 2007 IP
  2. ray9

    ray9 Guest

    Messages:
    69
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    rm -rf /path/to/top/folder
     
    ray9, Nov 8, 2007 IP
    offthedome likes this.
  3. offthedome

    offthedome Active Member

    Messages:
    446
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    95
    #3
    Yep that worked. Thanks. I was initially using a drag-and-drop version of ssh, so I didn't have that option.
     
    offthedome, Nov 8, 2007 IP
  4. dragonflies

    dragonflies Guest

    Messages:
    435
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Login using SU --- you can then remove all folders with path flield deletion.
     
    dragonflies, Nov 8, 2007 IP
  5. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can also try using SCP or SFTP for such issues.

    or if you're experienced, putty does it well.
     
    inworx, Nov 11, 2007 IP