You may also want to see:
Running a WordPress website properly comes with certain responsibilities. Optimizing your database and getting rid of unused and obsolete data is one way to keep your site in a better shape. Advanced Database Cleaner for WordPress is a handy plugin that cleans up your database from drafts, revisions, orphaned postmeta, and spam comments.
The plugin lets you schedule the clean-up process to run automatically. You can choose which data to be cleaned. The script removes useless comments, revisions, and meta data. The pro version displays items before cleaning them and detects plugin, theme, and WP options and tables.
Advanced Database Cleaner is compatible with Multisite networks. You can try it for free.
More WordPress reading: