How to delete your wordpress revisions

If you’ve been writing a blog for a while and revisited any of your posts you might have noticed noticed that they have many saved “revisions” accompanying them. The older the posts, they more they have, some are likely to have dozens of saves.
The reason is, Wordpress continually saves post instances, even for published posts, so can you revert to them later if you so desire.
The problem is, these posts exponentially bloat your Wordpress database file with otherwise useless data, which will inevitably slow the performance of your database.
When disabling this myself, I had around 130 posts and over 1400 revisions which made up around 80% of my database file. As time goes by you can imagine how much more redundant data is added.
If you wish to disable this feature for your own Wordpress blog simply add the following code to your wp-config file in the root directory of your Wordpress installation.
/** Stops wordpress continually saving revisions */
define(‘WP_POST_REVISIONS’, false);
Don’t forget!
As always, back up your database before making any changes. If your not confident, plenty of Wordpress support information is available before you get started.
Related posts






















