Im trying to delete all custom taxonomy objects including translations made with WPML.
$terms = get_terms('product-category');
foreach ($terms as $term) {
wp_delete_term($term->term_id, 'product-category');
}
What this does, is delete all main language taxonomies but all translations are left. What is the right way to delete all taxonomies with their translations. It's also important that translation links in *_icl_translations table would get removed for the taxonomies.