Currently I’m using
wp-optimize to remove all trashed posts, trashed comments, draft posts
However, this plugin sometimes not working and more important, it does not delete any trashed items from custom post type which I’ve from other plugins or built-in from theme. So is there any way or plugin that help me to achieve this task automatically?
You can use, in your wp-config.php:
define('EMPTY_TRASH_DAYS', 2 );
The example above will delete trashed posts (of all types) after 2 days.
you can use bulk delete plugin
thank you budy