How to Delete Unused Database Tables in WordPress

Delete or remove unused tables from the database in WordPress; Through this tutorial, we will learn how to delete or remove unused tables from the database in WordPress using plugins garbage collector.

If you install a plugin in WordPress, it automatically makes all the necessary folders, files, and database tables for it to work properly. However, when you deactivate and remove the same plugin, it may not delete the database tables along with the files and folders.

How to Delete Unused Database Tables in WordPress

Use the following steps to remove or delete unused tables from database in WordPress using plugins garbage collector:

  • Step 1 – Add Plugins Garbage Collector
  • Step 2 – Active Plugins Garbage Collector
  • Step 3 – Search Unused Tables From Database
  • Step 4 – Remove or Delete Unused Tables

Step 1 – Add Plugins Garbage Collector

Open your WordPress dashboard and navigate to “Plugins -> Add new.” Search for the “Plugins Garbage Collector” plugin. From the search results, install and activate the plugin.

Step 2 – Active Plugins Garbage Collector

Then navigate to Plugins menu and active “plugins garbage collector” plugin.

Step 3 – Search Unused Tables From Database

After that, Navigate “Tools -> Plugins Garbage Collector” page, select the “Search non-WP tables” radio option, and click on the “Scan Database” button.

After completing the scan, the plugin will display all the database tables that are not related to the core of WordPress or any of the installed plugins. Generally, these are the tables that are left over after deleting a plugin.

Step 4 – Remove or Delete Unused Tables

There is no select all option. So select manually and table will delete from database.

Conclusion

Through this tutorial, we have learned how to delete or remove unused tables from the database in WordPress using plugins garbage collector.

AuthorDevendra Dode

Greetings, I'm Devendra Dode, a full-stack developer, entrepreneur, and the proud owner of Tutsmake.com. My passion lies in crafting informative tutorials and offering valuable tips to assist fellow developers on their coding journey. Within my content, I cover a spectrum of technologies, including PHP, Python, JavaScript, jQuery, Laravel, Livewire, CodeIgniter, Node.js, Express.js, Vue.js, Angular.js, React.js, MySQL, MongoDB, REST APIs, Windows, XAMPP, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL, and Bootstrap. Whether you're starting out or looking for advanced examples, I provide step-by-step guides and practical demonstrations to make your learning experience seamless. Let's explore the diverse realms of coding together.

Leave a Reply

Your email address will not be published. Required fields are marked *