Forums

[resolved] How Get Rid of Revisions? (3 posts)

  1. stevewilson
    Member
    Posted 10 months ago #

    I think I've found how to prevent prior versions from being saved (per Codex, turning off the constant 'wp_post_revisions' in \htdocs\wordpress\wp-inclues\default-constants.php), but how do we get rid of the blizzard of revisions already there? There doesn't seem to be any mechanism -- even to eliminate them manually, one-by-one.

  2. Christine
    Moderator
    Posted 10 months ago #

    You can delete the post revisions by running a sql statement in your database.
    If you have access to phpmyadmin, you simply run this:

    DELETE FROM wp_posts WHERE post_type = “revision”;

    This will delete all of the posts marked as revisions.
    Here's an article with lots of details

  3. stevewilson
    Member
    Posted 10 months ago #

    Thanks much ! Terrific help.

Reply

You must log in to post.

About this Topic

Tags