WordPress.org

Ready to get started?Download WordPress

Forums

How to remove old versions of posts (3 posts)

  1. Arkadiusz Wernicki
    Member
    Posted 3 years ago #

    Hi.

    How to remove old versions of posts?
    Messages have a lot of version. I want to remove old versions.

  2. pazarhemsin
    Member
    Posted 3 years ago #

    just edit wp-config.php and add
    define('WP_POST_REVISIONS', false );
    for no revisions or
    define('WP_POST_REVISIONS', 3);
    for limiting the number of revisions.

    However revisions are not removed from the database, just not showed. If you want to save some space you may log in to your database from phpmyadmin and find the wp_posts table and find the entries with the "post_name" revision or autosave and delete them. It takes some time.
    Later click on the size data of the wp_posts and optimize the table. My 36.5 mb database shrinked to 5.5 mb.

  3. Arkadiusz Wernicki
    Member
    Posted 3 years ago #

    pazarhemsin: thx. Now my DB very small.
    (resolved)

Topic Closed

This topic has been closed to new replies.

About this Topic