WP CLI can't delete plugin related table

I have installed a plugin following wp plugin install ... CLI command and then activate through CLI command its working properly. But problem is that when I deactivate then delete the plugin the table which is related to this plugin is still in my database. Is there any way to delete the unused unnecessary tables from wp database?

Topic wp-reset-postdata wp-load.php wp-cli phpmyadmin wp-query Wordpress

Category Web


wp-cli does not have a feature in it that enables you to delete a specific table; you can only delete the entire database.

You'll have to manually delete the table through SQL.


That is the responsibility of the author of the plugin. Amazingly some authors believe that it is wrong to delete information from the DB, which I personally find unbelievable, but I guess there are all kinds of users that do not think or backup before they delete things, and they were crying for such functionality (i.e., for plugins to not delete DB on plugin delete).

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.