Skip to content

Instantly share code, notes, and snippets.

@n1k1c4
Created December 8, 2017 10:31
Show Gist options
  • Save n1k1c4/5e7c946829f7a2c3d78a4a4368d821d6 to your computer and use it in GitHub Desktop.
Save n1k1c4/5e7c946829f7a2c3d78a4a4368d821d6 to your computer and use it in GitHub Desktop.
DELETE FROM wp_terms WHERE term_id IN (SELECT term_id FROM wp_term_taxonomy WHERE taxonomy LIKE 'pa_%');
DELETE FROM wp_term_taxonomy WHERE taxonomy LIKE 'pa_%';
DELETE FROM wp_term_relationships WHERE term_taxonomy_id not IN (SELECT term_taxonomy_id FROM wp_term_taxonomy);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment