1.20.x 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
- modules/
taxonomy/ taxonomy.module, line 615 - Enables the organization of content into categories.
Code
function taxonomy_vocabulary_delete($vocabulary_name) {
$vocabulary = taxonomy_vocabulary_load($vocabulary_name);
$vocabulary->delete();
}