Respond to the deletion of taxonomy terms.
Modules implementing this hook can respond to the deletion of taxonomy terms from the database.
$term: A taxonomy term object.
function hook_taxonomy_term_delete($term) {
db_delete('mytable')
->condition('tid', $term->tid)
->execute();
}