Loading

How to Mass delete autosaved posts or Post revisions in WordPress




The tutorial covers, How to Mass delete autosaved posts or Post revisions in WordPress, how to delete the post revisions at one go using PHPMYADMIN and SQL query.

Step 1: Open your phpMyAdmin Control panel
Step 2: Click on the SQL tab to open the sql query text box
Step 3: Type the blow query made by Andrei Neculau

Note that if your WordPress DB Prefix is other than the default WP, Change that in the query. And execute the below query, you are Done !

DELETE a,b,c FROM wp_posts a LEFT JOIN wp_term_relationships b ON (a.ID=b.object_id) LEFT JOIN wp_postmeta c ON (a.ID=c.post_id) WHERE a.post_type=’revision’;

NOTE: This method will delete all revisions from every post including all of its meta data.

Hope you liked the article
1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 5.00 out of 5)
Loading ... Loading ...

You might want to read these as well

Loading...







How to Mass delete autosaved posts or Post revisions in WordPress

Joshu is the Founder of the OrangeCopper Webmaster's Community, He had been designing & developing web applications as a freelancer in this field for the past 9 years. OC was born in 2002 December and since 2004 Joshu had been Blogging on the Web about what he learned the Hard way, So that you could learn it the Easy Way. Follow OrangeCopper on Twitter and you would be Auto-Followed.


blog comments powered by Disqus