Delete post and page revisions regularly

Hire a WordPress Expert on Codeable
Updated On: May 4, 2023 0 Comments

If you are an author, chances are you’ll keep tweaking the content of a post until you’re happy with it.

In this process, you’ll be hitting the update button quite frequently.

And every time you click the update button, WordPress will save changes related to that particular update as something called a revision.

For example, when I was creating a landing page, I hit the update button 50+ times πŸ˜…

Post revision count

And this happens every time you create a new post or a page.

The thing is, once we are refining the content of that post, we no longer need those revisions.

So, we need to delete them to stop the database size from growing because a big-sized database is one of the key factors of a slow WordPress site.

“Got it, But how do I delete them? I am not a developer!”

Oh, don’t worry.

You don’t have to be a developer to delete post revisions. It is usually a harmless process.

How to delete post revisions

If you have an optimization plugin like WP Rocket already installed, they already ship with options for cleaning the database revisions.

WP Rocket interface for cleaning the post revisions

But if you don’t have it installed, don’t worry.

All you have to do is install the free WP-Optimize plugin.

Next, to delete the post revisions:

  1. Go to Admin Dashboard -> WP-Optimize -> Database
  2. Look for the “Clean all post revisions” option and make sure it is turned on
  3. Finally, click on the “Run Optimization” button.

That’s all. It is that easy to clean up the post-revisions in WordPress.

After you have cleaned it up, make sure to delete the plugin to improve the performance of the website.

And then, after a week, install the plugin again to clean up the revisions and delete it after the work is done.

Try to repeat this process every week πŸ™‚

“Nice! but what about deleting page revisions?”

Ah! Good question!

When the WP-Optimize plugin says “Post revisions”, it also means “Page revisions”.

This is true with any plugin that lets you optimize your database.

Leave a Reply

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