I would like to be able to programmatic-ally delete a node:
node_delete(N);
Without getting something like the following message when the page is refreshed:
Document Delivery Request Sather,
Kinzer-Tevaris v. Smith, Death has
been deleted
Is this possible?
If you call
drupal_get_messagesbefore the end of your script it will reset the messages queue.Check out the documentation here.