Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Remove large number of files?

Discussion in 'General Discussion' started by Nakshathra, Oct 6, 2018.

  1. Nakshathra

    Nakshathra Registered

    Joined:
    Jan 22, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Website Owner
    How do I remove files around 1 billion from a folder, tries all the possible SSH commands nothing seems to be responding.
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    443
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Nakshathra


    What folder is it in? If it's easier you might delete the folder itself. Otherwise you'd need to use find and delete to do this since rm won't be able to do this:

    cd to the directory in question and run something like:
    Code:
    find . -type f -delete
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Nakshathra

    Nakshathra Registered

    Joined:
    Jan 22, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Website Owner
    Hello,

    Thank you for the response .it's a folder under home/user.. deleting the folder or file inside it didn't work due to the number files in it. Any other way ?


     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,827
    Likes Received:
    476
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You should be able to remove the directory from cPanel File Manager. Try it and let us know if you get an error.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice