WordPress Disable and Remove Post Revisions
WordPress always registers posts automatically at a certain time and keeps them in the old copy to be able to go back. Over time, this process takes up too much space on the databased and reduces the performance of your WordPress site. To do this, you can first write the following code and you can do this by adding our wp-config.php file. The wp-config.php file is in the WordPress main root directory.
define('AUTOSAVE_INTERVAL', 500 ); // this is the seconds define('WP_POST_REVISIONS', false );
You can run the following code in the phpMyAdmin sql section to delete the previous revision post files, you will minimize your database and gain a lot of space on this. It will give you performance after this process. If the prefix is different in the WordPress database tables, please set the wp_ prefix in wp_posts by itself.
DELETE FROM wp_posts WHERE post_type = "revision";