/**
* Implements hook_path_delete().
*/
function {{ machine_name }}_path_delete($path) {
\Drupal::database()->delete('mytable')
->condition('pid', $path['pid'])
->execute();
}