> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using a plugin to optimize WordPress database

> Keep your WordPress database clean and optimized with the Optimize Database after Deleting Revisions Plugin. Learn how to install it today.

The Optimize Database after Deleting Revisions plugin will tidy up your [WordPress](https://hosting.com/hosting/platforms/wordpress-hosting) databases by deleting unwanted data with one click.This will reduce your database size thereby increasing the performance of your website. This guide describes how to install the Optimize Database after Deleting Revisions plugin for your [WordPress](https://hosting.com/hosting/platforms/wordpress-hosting) website.

## Installing and configuring the Optimize Database after Deleting Revisions plugin

To add Optimize Database after Deleting Revisions Plugin in your WordPress website, follow these steps:

1. Log in to WordPress as the administrator.

2. On the **Dashboard** in the left sidebar, click **Plugins**, and then click **Add New**:\
   ![](https://static.hosting.com/kb/kb-wp-optimisedatabase-1.png)

3. Search for "optimize database"" and, you will see a display of available plugins on your screen.

4. **Install** and **Activate** the **Optimize Database after Deleting Revisions** Plugin:\
   ![](https://static.hosting.com/kb/kb-wp-optimisedatabase-2.png)

5. On the **Dashboard** in the left sidebar, click on **Settings**, then click on **Optimize Database**:\
   ![](https://static.hosting.com/kb/kb-wp-optimizedatabse-6.png)

6. Configure the Delete Revisions for the post types, and exclude database tables from optimization. Click **Save Settings**:\
   ![](https://static.hosting.com/kb/kb-wp-optimizedatabase-7.png)![](https://static.hosting.com/kb/kb-wp-optimizedatabase-5.png)

7. To add the **Optimise Database** on the on the admin bar tick the "**Show '1-click' link in Admin Bar**" checkbox and save the settings:\
   ![](https://static.hosting.com/kb/Screenshot_2021-07-16_at_5.57.47_PM_.png)

8. The **Optimize Database** link is displayed on the top menu bar. Click on the link to optmize your WordPress database:\
   ![](https://static.hosting.com/kb/Screenshot_2021-07-16_at_6.01.27_PM_.png)

## More information

For more information about the Optimize Database after Deleting Revisions Plugin, please visit [https://wordpress.org/plugins/rvg-optimize-database/](https://wordpress.org/plugins/rvg-optimize-database/)

## Related articles

* [Enabling automatic updates for WordPress plugins](/docs/enabling-automatic-updates-for-wordpress-plugins)

* [Cleaning a WordPress database with the Advanced Database Cleaner plugin](/docs/cleaning-a-wordpress-database-with-advanced-database-cleaner-plugin)

* [Updating WordPress database configuration settings](/docs/updating-wordpress-database-configuration-settings)
