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!

Log files: What's safe to delete?

Discussion in 'General Discussion' started by Selena, Feb 4, 2014.

  1. Selena

    Selena Active Member

    Joined:
    Jun 22, 2009
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    51
    I have a client that is over quota. It looks like the log files are eating up a lot of disk space. Is it safe to delete them?

    Is it safe to delete the entire /tmp folder?

    Any tips would be greatly appreciated.

    Thank you,
    Selena
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    It's not safe to delete the /tmp directory. Could you elaborate on the specific log files that are taking up space? Also, are you referring to the individual account or the server in general?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Selena

    Selena Active Member

    Joined:
    Jun 22, 2009
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    51
    An individual cPanel account.

    Their error_log file, for example, was at 2 GB.

    thank you.
     
  4. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    834
    Likes Received:
    28
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    You can typically delete log files without an issue. It perhaps might be best to empty them out instead of deleting them - some services get picky about that.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yes, it's acceptable to delete the error_log within their account if you no longer require that data. You should leave the account's "tmp" directory in-place because it's where the account's statistics are stored.

    Thank you.
     
    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