Cleanup Duplicate Meta Cleanup Duplicate Meta

Cleanup Duplicate Meta

Created by: WP Developers Club and Tonya

Rating:
Downloaded: 8k times

There are times when your database gets filled up with duplicate entries that you may not want. Cleanup Duplicate Meta allows you to check for any duplicates in either the Post Meta or User Meta tables. Then if you want to get rid of them, simply click on the Cleanup button and Cleanup Duplicate Meta deletes the duplicates leaving either the first or last meta (you select which).

The interface is simple and easy to use:

  1. ‘Check for Duplicates’ queries the database and then displays all the duplicates found.
  2. ‘Count Duplicates’ counts all the duplicates found in the database (i.e. a total count).
  3. The ‘Cleanup’ buttons trigger a SQL query to run, which deletes each of the duplicate entries, leaving either the first or last one (per your selection) in the database. All non-duplicates remain untouched by the plugin.

See the screenshots tab for more details.

Screenshots

  • The plugin's page in Tools > 'Cleanup Duplicates'.
  • Screen for both the Post Meta and User Meta controls.
  • An example of the table generated when clicking on 'Check for Duplicates' button.  The results are sorted by meta key.
  • After clicking on the 'Count Duplicates' button, notification is displayed of the number of duplicates found (which could be deleted).
  • The message after clicking on 'Cleanup Post Meta'.

Categories

Get New Themes & Resources