Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the copy-the-code domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pb-seo-friendly-images domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the johannes domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121
How to auto-delete the 🗑️ trash content in cPanel - PC✗3
How to auto-delete the 🗑️ trash content in cPanel

How to auto-delete the 🗑️ trash content in cPanel

By default in WHM this setting is set to “Disabled” which means that the content in .trash folder is kept indefinitely. To auto-delete content from the .trash folder for all cPanel users simply do the following:

Step 1. login to WHM and go to Tweak Settings  (WHM >> Home >> Server Configuration >> Tweak Settings

Step 2. select  “Age, in days, of content to purge from users’ File Manager Trash ” and select the number of days (i.e., 30)

delete trash 1024x87 - How to auto-delete the 🗑️ trash content in cPanel

Step 3. Scroll down to the bottom of the page and click on “Save“.

That’s it, now this script will run and auto delete content from users’ .trash folder each night. You can also trigger the script manually when needed:

/urs/local/cpanel/bin/empty_user_trash
whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.