Results 1 to 6 of 6

Thread: Using unix line command to delete directories...

  1. #1
    Have an idea and make it come to life! Gary-Alan's Avatar
    Join Date
    Oct 2003
    Location
    Daytona Beach, Florida, USA
    Posts
    2,591

    Using unix line command to delete directories...

    Hey Luke and anyone who has a clue!!! LOL

    I'm cleaning a lot of files off of a server. I've been doing most of it through an FTP client since it was mostly html and text files

    Well now I'm at a large number of lengthy/indepth directories that contain image content.

    I tired to do the standard 'rmdir directory-name' command; BUT, the directory contains sub directories and files. And, I got a 'directory not empty' error. Is there an added character or something that I can put into my remove command to get it all?

    Or am I destined to spend the remaining days of my life deleting thousands of these things through FTP? LOL
    Traffic is like your cock -
    Play with it and watch it GROW!


  2. #2
    virgin by request ;) Chilihost's Avatar
    Join Date
    Oct 2003
    Posts
    4,496
    too easy:

    rm -Rf directory

    forces removal of directory recursively

    cheers,
    Luke


  3. #3
    Have an idea and make it come to life! Gary-Alan's Avatar
    Join Date
    Oct 2003
    Location
    Daytona Beach, Florida, USA
    Posts
    2,591
    Quote Originally Posted by Chilihost
    too easy:

    rm -Rf directory

    forces removal of directory recursively

    cheers,
    Luke
    Easy for YOU to say! LMAOPIP

    Thanks a ton, hon!

    Gary
    Traffic is like your cock -
    Play with it and watch it GROW!


  4. #4
    Have an idea and make it come to life! Gary-Alan's Avatar
    Join Date
    Oct 2003
    Location
    Daytona Beach, Florida, USA
    Posts
    2,591
    And you're a tech god as far as I'm concerned!!

    Took me an hour to get rid of 100 folders on FTP...

    Ten minutes with the remove command and the other 2000+ folders were gone!

    THANK YOU!
    Traffic is like your cock -
    Play with it and watch it GROW!


  5. #5
    AusCoding Allan
    Guest
    Sounds like our clever bunny Luke has been up to his usual clever tricks helping us out.

    Well Done Luke!

    Allan


  6. #6
    virgin by request ;) Chilihost's Avatar
    Join Date
    Oct 2003
    Posts
    4,496
    cheers, guys!

    ...Luke


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •