You could use plugins to clean up the database tables. Here is a selection: https://wordpress.org/plugins/tags/cleanup/ – this one might be suitable: https://wordpress.org/plugins/advanced-database-cleaner/
You can also remove tables that you are sure are no longer used “by hand”.
In all cases, I would advise you to make a backup of the database beforehand. The procedure for doing this is described here, for example: https://wordpress.org/support/article/wordpress-backups/
Thread Starter
kklo
(@kklo)
Hi @threadi
I tested the indicated plugin, but it only deletes the contents of the table, but the table is empty, taking up space. I thought it deleted the orphaned table. I can’t do this manually because I don’t know which tables are created by other plugins. If it was an automatic recognition it would be much better.
Anyway, thank you very much.
Wait .. you deleted the contents of a table and you did not know which table?
If plugins leave tables behind, they are poorly programmed. To clarify this, you would have to contact the developers of the plugins in question.
If you do not know which tables may have been left behind, you could also make a second WordPress installation and install and activate all the plugins there that are also active in the first one. Then compare the database tables with each other. You should be able to find the tables that are too many in the actual database.
Always remember to make backups here too.