Implements hook_node_predelete().
function path_node_predelete(EntityInterface $node) {
// Delete all aliases associated with this node.
drupal_container()
->get('path.crud')
->delete(array(
'source' => 'node/' . $node->nid,
));
}