How to Use the WordPress Advanced Database Cleaner

Learn how to use the WordPress Advanced Database Cleaner Plugin
Learn how to use the WordPress Advanced Database Cleaner Plugin

The WordPress Advanced Database Cleaner plugin is an easy way to remove unnecessary content and data that is taking up space in your database tables. Over time your WordPress website collects data such as trashed comments, old Post revisions, and spam. This can fill in your database tables and build up over time, eventually causing delays and slower response times from your website.

Removing this unwanted content can help your site perform more efficiently since there is less data to navigate through when your site runs MySQL queries. This increase in performance provides a better experience for your visitors and can help your search engine ranking. In this guide, we’ll show you how to use the Advanced Database Cleaner plugin to automatically eliminate worthless content from your site. Advanced users may be interested in our guide on how to check and repair a database with WP-CLI.

Say goodbye to slow loading times and hello to high-performance websites with our new WordPress VPS Hosting plans. Experience 40x faster WordPress page load speeds on purpose-built servers that guarantee 99.99% uptime.

check markHigh-Performance VPS check markFully-Managed Support check markFree SSL & Dedicated IP check markAdvanced Server Caching

Managed WordPress

Don’t have time to read our full article? Watch our walk-through video.

Automatic Database Cleanup

Now that you know why deleting unused content from your WordPress database is important, we’ll walk you through the steps. Then, we will go over some of the other options available with this plugin.

In this guide, we will only be covering the options available in the free version of the plugin.

  1. Install and activate the Advanced Database Cleaner plugin by Younes JFR.
    WordPress Advanced Database Cleaner
  2. Once it has been installed, click the new WP DB Cleaner link in your Dashboard menu.
  3. By default, you will be on the General Clean-up tab. To clean up an element, click the check box next to it, choose the Clean option from the dropdown menu, then click the Apply button.
    Clean Database Elements

Schedule a Cleanup

If you want automatic cleanups to run on regular intervals, you can set up a schedule.

  1. Open the WP DB Cleaner section of your WordPress Dashboard, then make sure you are on the General clean-up tab.
    General Database Cleanup
  2. Click the Add new schedule button to the right.
    Schedule Database Cleaning
  3. You can then check the box next to the element that you want to include in this scheduled task.
    Selecting Database Cleanup Tasks
  4. Enter a name for your schedule.
  5. Set the frequency that you want these scheduled tasks to run on. Options are: Once, Hourly, Twice a day, Daily, Weekly Monthly.
  6. Enter a start date for this task.
  7. Enter a start time for this task.
  8. Set the schedule to Active to enable it or Inactive if you don’t want it to run.
  9. Click the Save the schedule button to begin cleaning automatically at your set times.
    Save Database Cleanup Schedule

Working with Tables

This plugin also includes the ability to work directly with specific database tables. Below are the available options.

We do not recommend making changes directly in the database unless you fully understand what you are doing.

  1. Open the WP DB Cleaner section of your WordPress Dashboard, then open the Tables tab.
    WordPress Database Tables
  2. You will see a list of table names. Check the box next to the one you want to work with.
  3. Click the dropdown box and choose a task. Available options are: Optimize, Repair, Empty Rows, and Delete.
    Select Tasks to Fix in your WordPress Database
  4. Click the Apply Button.

Advanced Database Cleaner Options

You can also make changes to specific table values with this plugin. Follow along to learn how.

Once again, we do not recommend making changes directly in the database unless you fully understand what you are doing.

  1. Open the WP DB Cleaner section of your WordPress Dashboard, then open the Options tab. 
  2. You will see all the available database options. Check the box next to the one you want to work with.
  3. Choose one of the following actions from the drop-down menu: Delete, Set autoload to yes, Set autoload to no.
  4. Click the Apply button to perform this task.

Cron Jobs

Your WordPress database includes various hooks that are run on a schedule using a cron job. In this section, you can view the frequency they are run on and delete them if necessary.

Do not make changes to these cron jobs unless you fully understand what you are doing.

  1. In your WordPress Dashboard click WP DB Cleaner, then the Cron Jobs tab.
    WordPress Advanced Database Cleaner Cron Jobs
  2. You will see a list of all the hooks that run in a cron job along with the frequency. Click the check box next to the one you want to delete.
  3. Click the Delete option from the dropdown menu.
  4. Click the Apply button to delete it.
    Delete unwanted WordPress Cron Jobs

Overview & Settings

This plugin includes an overview so you can see some detailed information about your WordPress site, the database, and tables. There’s also some plugin settings that you can adjust that we will go over below.

  1. Click WP DB Cleaner then Overview & settings in your Dashboard.
  2. You will then see an overview that includes the following information: WP Version, Database size, Total unused data, Total tables, Tables to optimize, Total options, Total cron tasks, WP multisite Enabled, Number of sites, Script Max timeout, and Local time.
    WordPress Database Overview
  3. Under the settings section, uncheck the box to hide the WP DB Cleaner menu from the sidebar or under the Tools menu.
  4. Check the available box to hide the Premium tab.
  5. Click the Save settings button once you have made your selection.
    HIde WordPress Advanced Database Cleaner Menu

Now you know how to remove unwanted items from the database of your WordPress site. For more helpful guides, visit our WordPress Education Channel.

IC
InMotion Hosting Contributor Content Writer II

InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!

More Articles by InMotion Hosting

Was this article helpful? Join the conversation!

Questions about our MailChannels Deployment? We have answers and are here to help!Learn More
+