How to delete files?

Discussion in 'Apache' started by a4tech, Jun 5, 2013.

  1. #1
    Hello,

    My server is with Centos OS. I have a cache directory which has tons of scrap files. I am unable to delete it. rm -rf dirname gives an error.

    Is there any way to remove this directory quickly.
     
    a4tech, Jun 5, 2013 IP
  2. scottlpool2003

    scottlpool2003 Well-Known Member

    Messages:
    1,708
    Likes Received:
    49
    Best Answers:
    9
    Trophy Points:
    150
    #2
    Is it a directory within your web structure or a system file? If it's within your web structure, I find logging in via the control panel and deleting via file the quickest way to do it. It literally removes huge folders/files immediately without needing to wait for FTP to delete it slowly.
     
    scottlpool2003, Jun 5, 2013 IP
  3. a4tech

    a4tech Member

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    yes, its with in web directory folders/files.

    How to erase it.? What is the command?
     
    a4tech, Jun 5, 2013 IP
  4. scottlpool2003

    scottlpool2003 Well-Known Member

    Messages:
    1,708
    Likes Received:
    49
    Best Answers:
    9
    Trophy Points:
    150
    #4
    Just login to your web admin, navigate to the site, open up file manager and remove it there.
     
    scottlpool2003, Jun 5, 2013 IP
  5. a4tech

    a4tech Member

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5
    file manager not works millions of scrap files.
     
    a4tech, Jun 5, 2013 IP
  6. scottlpool2003

    scottlpool2003 Well-Known Member

    Messages:
    1,708
    Likes Received:
    49
    Best Answers:
    9
    Trophy Points:
    150
    #6
    What error do you get trying to remove it via SSH?
     
    scottlpool2003, Jun 5, 2013 IP
  7. testu

    testu Well-Known Member

    Messages:
    231
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    #7
    Probably he gets Argument list too long?
     
    testu, Jun 7, 2013 IP