How to empty your WordPress trash without going through wp-admin

by Mar 15, 2020Wordpress0 comments

If your WordPress trash has thousands of deleted items, it might be tricky to empty it from within WordPress.

In this video, I show you how to empty your WordPress trash directly in MySQL without going through wp-admin. 

The Query to paste in the SQL window: DELETE p FROM wp_posts p LEFT OUTER JOIN wp_postmeta pm ON (p.ID = pm.post_id) WHERE post_status = ‘trash’

Disclaimer: Use the instructions in this video at your own risk and always backup your site before performing operations on its database. We are not responsible for any data loss or damage that might occur to your website

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Follow Me

Website created with DIVI. Get 10% discount with link below

Divi WordPress Theme Affiliate link

Recent Comments

    Stay Up to Date With The Latest News & Updates

    Join Our Newsletter

    Share This