Delete node without Confirm I need to delete node for specific Content type without confirm message

function _node_delete_function($node) {
  if ($node-&gt;type == 'bills') {
    node_delete($node-&gt;nid);
    drupal_goto();
 }    
  else {

   return drupal_get_form('node_delete_confirm', $node);
  }
}


Any help?
You can use hook_menu_alter().

Example :

/**
 * Implements hook_menu_alter().
 */
function Module_menu_alter(&amp;$items) {
  $items['node/%node/delete']['page arguments'] = array('_custom_node_delete', 1);
}

/*
 * Custom delete.
 */
function _custom_node_delete($form, &amp;$form_state, $node) {
  node_delete($node-&gt;nid);
  cache_clear_all();
  watchdog('content', '@type: deleted %title.', array('@type' =&gt; $node-&gt;type, '%title' =&gt; $node-&gt;title));
  drupal_set_message(
    t('@type %title has been deleted.', array('@type' =&gt; node_type_get_name($node), '%title' =&gt; $node-&gt;title))
  );
  $form_state['redirect'] = '&lt;front&gt;';
}