How to Limit and Delete WordPress Post Revisions

by

Hey there! Some links on this page may be affiliate links which means that, if you choose to make a purchase, I may earn a small commission at no extra cost to you. I greatly appreciate your support!

It’s very easy to delete and limit the number of post revisions in WordPress. You have a few options.

Limit and Delete Post Revisions with a Plugin

The perfmatters plugin allows you to not only limit the number of post revisions, but also clean up your database and delete old post revisions. This premium plugin is loaded with a ton of other features that will speed up your WordPress website.

Delete Post Revisions with a Free Plugin

To delete old WordPress post revisions with a free plugin, I recommend WP-Sweep. WP-Sweep not only deletes old post revision, but also clears out spam comments and so much more .

Limit Post Revisions in Your wp-config.php

For those of you who don’t want to install a plugin to limit the number of post revisions, you can simply add one line to your wp-config.php file.

The following limits the number of WordPress post revisions to a maximum of 10.

define('WP_POST_REVISIONS', 10);

If you would like to disable post revisions all together, you can set WP_POST_REVISIONS to 0 like this define('WP_POST_REVISIONS', 0);.

Disable Post Revisions with a Free Plugin

To completely eliminate WordPress post revisions with a plugin, you can install Disable Post Revision. This free plugin allows you to selectively disable revisions for posts and pages.


Meet Tony

With a strong software engineering background, Tony is determined to help as many people as possible start their online busines. Discover why Tony quit his hedge fund job to pursue this mission. You can send Tony a message here.

Leave a Comment