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