How do I delete a vocabulary programmatically? In Drupal 7 there was taxonomy_vocabulary_delete($vid), but this doesn't seem to be there in Drupal 8.

What's the equivalent code for Drupal 8?
I believe I have figured this out. You have to load the vocabulary using the Vocabulary entity class, then call the delete method on it. So something like this:

Vocabulary::load($vid)-&gt;delete();