How to delete directory and everything under it?

Discussion in 'PHP' started by bobby9101, Aug 30, 2007.

  1. #1
    Hi, I want to delete a folder and everything under it, how do I do this?
    Thanks
     
    bobby9101, Aug 30, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    While I could code up something myself, I'll point you to a site with some examples and codes.

    www.php.net/rmdir

    Have a look at the user comments.
     
    nico_swd, Aug 30, 2007 IP
  3. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I saw those, was wondering if there was a shorter method.
    Thanks
     
    bobby9101, Aug 30, 2007 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    Lol, are you serious? :( Why?
     
    nico_swd, Aug 30, 2007 IP
  5. DominoBB

    DominoBB Peon

    Messages:
    48
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You didn't really specify you want to do this with php I'll just tell you that you can login with your ftp client to your website and select the directory and press delete key, other than that I don't imagine a faster way.
     
    DominoBB, Aug 30, 2007 IP