Here’s a quick and simple way to configure your WordPress to automatically clear the trash on a regular basis: 1. Using a FTP application (such as Filezilla), download the wp-config.php file from your server. 2. Open the wp-config.php file with a text editor and insert the following code to the end of the file: where ‘X’ is the interval (in days) the trash will auto-empty itself. For example, if you want the trash to auto-empty itself every 7 days, the code will be
Disable the trash feature
In some cases, you might want to disable the trash feature altogether. You can do this by setting the number of day to 0. The code become: That’s it.