WordPress.org

Support

Support » How-To and Troubleshooting » How to remove old versions of posts

How to remove old versions of posts

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove old versions of posts’ is closed to new replies.
Skip to toolbar