1. Home
  2. Knowledge Base
  3. cPanel
  4. How to disable the WordPress trash feature entirely

How to disable the WordPress trash feature entirely

Step 1: Log in to cPanel.
Step 2: Click on the ‘File Manager’ from the Files section of the cPanel home screen.
Step 3: Navigate to the directory where WordPress is installed.
Step 4: Add the following line in the below snippet to the wp-config.php file. Where 0 represents the number of days that wordpress retains the trash folder.

+++
define( ‘EMPTY_TRASH_DAYS’, 0 );
+++

Step 5: Click Save Changes.

Click here to view this article as Oryon knowledge base video tutorial playlist.

Related Articles