Skip confirmation page on node delete
Just checking the node's type should be enough, and you can default to returning the standard deletion form:

function my_node_delete_function($node) {
  // If the node is of your custom type, delete it straight away.
  if ($node-&gt;type == 'my_type') {
    node_delete($node-&gt;nid);
    // ...
    drupal_goto();
  }
  else {
    // Otherwise, serve the standard node delete page.
    module_load_include('inc', 'node', 'node.pages');
    return drupal_get_form('node_delete_confirm', $node);
  }
}