Respond to taxonomy term deletion.
This hook is invoked from taxonomy_term_delete() 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('term_synoynm')
->condition('tid', $term->tid)
->execute();
}