I've created a couple of vocabularies programmatically, and accidentally included some spaces in the machine names (caused by bad data in an input CSV). I can't delete these vocabularies with Vocabulary::load($vid)->delete();
, even though I can see the vocabularies names with
dsm(taxonomy_vocabulary_get_names());
, while load($vid)
returns NULL
.
Any ideas on how I can delete these vocabularies? I was able to delete all the terms in a vocabulary, but the reference remains under admin/structure/taxonomy
.