Implements hook_taxonomy_term_delete().
function path_taxonomy_term_delete(Term $term) {
// Delete all aliases associated with this term.
Drupal::service('path.crud')
->delete(array(
'source' => 'taxonomy/term/' . $term
->id(),
));
}