How to delete post revisions in wordpress.
In my Previous post I wrote , how to disable post revision feature in wordpress. Here is a quick addition to that, how you can delete your previously saved post revisions from wordpress database.
Go to your phpmyadmin and run this query .
Please do not forget to have backup of your database before taking any action.
- 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’
working and tested by many wordpress users but plz take backup of your database first.
Hope It Works.
Have a look at : How to disable post revisions feature in word press.
Related posts: