The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. Selena

    Selena Active Member

    Joined:
    Jun 22, 2009
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    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:
    817
    Likes Received:
    22
    Trophy Points:
    18
    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.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page