Deletes taxonomy index entries for a given node.
\Drupal\Core\Entity\EntityInterface $node: The node entity.
function taxonomy_delete_node_index(EntityInterface $node) {
if (config('taxonomy.settings')
->get('maintain_index_table')) {
db_delete('taxonomy_index')
->condition('nid', $node->nid)
->execute();
}
}