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.

.trash folder, how to empty it?

Discussion in 'General Discussion' started by postcd, Oct 7, 2014.

  1. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    624
    Likes Received:
    6
    Trophy Points:
    18
    Helo, i found on my WHM server in /home/myusername/.trash is alot of files, how can i safelly delete them?
     
  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 :)

    Those are files you have deleted through File Manager. You can use the "Empty Trash" option in File Manager to remove them, or delete them manually through SSH or FTP.

    Thank you.
     
  3. onlineth

    onlineth Registered

    Joined:
    Apr 28, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Will the trash folder automatically empty itself?
     
    #3 onlineth, Dec 28, 2015
    Last edited by a moderator: Apr 26, 2016
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    For emails, yes, you can browse to:

    "WHM Home » Service Configuration » Mailserver Configuration"

    Enable the "Auto Expunge Trash" option and choose how long you want deleted email to remain on the server if you want to automatically empty the trash folders. However, there are no native features available for the "Trash" directory used for File Manager.

    Thank you.
     
  5. KoolPal

    KoolPal Registered

    Joined:
    Mar 19, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Website Owner
    Hi,

    Sorry to revive an old thread. I just started seeing warnings that my backups were failing. On investigation I found a huge number of spam emails.

    I deleted all of those from using webmail / Horde (also ensured I used 'Purge Deleted' option.

    Now when I check inode usage I find all those deleted emails lying in mail/.Trash/tmp

    Please see attachment. Cpanel Trash.png

    Can anyone please guide me how to empty this out?

    Thanks a lot!
     
  6. Ameya Barwe

    Ameya Barwe Well-Known Member

    Joined:
    Jan 1, 2016
    Messages:
    49
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Nashik
    cPanel Access Level:
    Root Administrator
    If you have the ssh access then you should be able to remove emails from mail/.Trash/tmp directory, otherwise get in touch with your hosting provider and ask them to do this for you. :)
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Do you have root access to this system? If not, you can ask your hosting provider to remove these emails, or you can manually remove them from that directory via File Manager or FTP.

    Thank you.
     
  8. KoolPal

    KoolPal Registered

    Joined:
    Mar 19, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Website Owner
    Thanks for the advice.

    I deleted the mail/.Trash/tmp folder itself. This helped empty the inode count.

    I hope this tmp folder would get recreated on its own and not cause any additional issues.
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I'm happy to see you were able to address the issue. Note that it's a good idea to leave the directories in-place and remove the files within them.

    Thank you.
     
Loading...

Share This Page