import data via pods api duplicates records
After emptying a pods table, then using the api method to import a CSV file, the manage content section of the pods cms in wordpress duplicates records, so there's 2 of everything. I'd like to delete the duplicates. does anyone have a suggestion?
3 Answers
To reset a Pod, use PodAPI like $api->reset_pod ( array('name' => 'your_pod_name') );
You will need to clear out the wp_pod records tied to that pod's "datatype_id" stored as wp_pod_types.id
You could loop through all the records in your database and delete all but the oldest (or newest) using a PodAPI call.
@fatpluto,
If you meant to handle the duplicate records by deleting and leaving only one from each duplicate records, then try the following: http://www.openscriptsolution.com/2011/07/15/how-to-handle-duplicate-records-by-deleting-and-leaving-only-one-record-from-each-duplicate-records-in-mysql-database/
Hope it helps. :)
edited Jul 15 '11 at 4:06


