You can use the following command:.
drush -v eval 'foreach(taxonomy_get_tree(123) as $term) { taxonomy_term_delete($term->tid); }'
drush -v eval 'foreach(taxonomy_get_tree(123) as $term) { taxonomy_term_delete($term->tid); }'
If it doesn't work, make sure that you clear your cache (e.g. memcached).
OrA faster way byis using the following dirty SQL query:
drush sqlq "DELETE FROM taxonomy_term_data WHERE vid = 123"
Where 123, where 123 is yourthe ID of the vocabulary id which you should change.
drush sqlq "DELETE FROM taxonomy_term_data WHERE vid = 123"
You can get the vid
of yourvid from the vocabulary name bywith the following command:
drush sqlq "SELECT name, vid FROM taxonomy_vocabulary WHERE name = 'vocabulary_name'"
See also:.
drush sqlq "SELECT name, vid FROM taxonomy_vocabulary WHERE name = 'vocabulary_name'"