1 taxonomy.module taxonomy_vocabulary_delete($vocabulary_name)

Deletes a vocabulary.

This will update all Taxonomy fields so that they don't reference the deleted vocabulary. It also will delete fields that have no remaining vocabulary references. All taxonomy terms of the deleted vocabulary will be deleted as well.

File

core/modules/taxonomy/taxonomy.module, line 518
Enables the organization of content into categories.

Code

function taxonomy_vocabulary_delete($vocabulary_name) {
  $vocabulary = taxonomy_vocabulary_load($vocabulary_name);
  $vocabulary->delete();
}