Respond to taxonomy term deletion.
This hook is invoked from taxonomy term deletion after field_attach_delete() has been called and after the term has been removed from the database.
Drupal\taxonomy\Term $term: The taxonomy term entity that has been deleted.
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_taxonomy_term_delete(Drupal\taxonomy\Term $term) {
db_delete('mytable')
->condition('tid', $term
->id())
->execute();
}