How to empty a taxonomy? I have been messing around with data migration and I ended up with a rather corrupted taxonomy with the wrong terms in it.

I would like to completely delete the terms inside the taxonomy. I have not found any drush command for doing it. A module search was also unsuccessful, in fact I found a dead one named cleantaxonomy.

I can try to build a SQL query to do this but I am sure someone stepped into this before.
Taxonomy Manager makes that pretty easy:


  This module provides a powerful interface for managing taxonomies. A vocabulary gets displayed in a dynamic tree view, where parent terms can be expanded to list their nested child terms or can be collapsed.


Or you could do it manually:

foreach (taxonomy_vocabulary_load_multiple(FALSE) as $vocab) {
  taxonomy_vocabulary_delete($vocab-&gt;vid);
}


If you have a lot of vocabs/terms it would be better to split that up into a batch job to avoid out of memory errors.