title: node_delete not working
body: <p>I am trying to delete some CCK nodes in Drupal using a standalone PHP script while logged in as anonymous user</p>
  
  <pre><code>if(empty($total_deals_for_this_pl)){
  $node_nid = $single_result['nid'];
  global $user;
  $original_user = $user;
  $user = user_load(1);
  print $node_nid."&lt;br&gt;";
  node_delete($node_nid);
  $user = $original_user;
  }
  </code></pre>
  
  <p>I am able to retrieve all the nid's successfully but the nodes are not getting deleted. I am loading Drupal as follows</p>
  
  <pre><code>chdir('C:\wamp\www\mysite\platform'); //my drupal resides here
  require_once './includes/bootstrap.inc';
  include_once './includes/common.inc';
  </code></pre>