How do I delete all my files?

Discussion in 'Site & Server Administration' started by fryman, Sep 14, 2005.

  1. #1
    I have a cache folder full of junk, I want to delete all the content. I am connected to the server via putty, what command do I need to type to delete everything? I tried rm *.* and it doesn't work.
     
    fryman, Sep 14, 2005 IP
  2. aqi32

    aqi32 Active Member

    Messages:
    225
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #2
    have you tried rm foldername
     
    aqi32, Sep 14, 2005 IP
  3. johnt

    johnt Peon

    Messages:
    178
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #3
    cd into the folder and then use
    rm -f *
    Code (markup):
    but be very careful that you are in the right directory :)
    The -f flag means force, so you will not be prompted individually for every file "Are you sure?", which is a real pain when you're deleting lots of files.
     
    johnt, Sep 14, 2005 IP