1 node.module node_delete($nid)

Deletes a node.

Parameters

$nid: A node ID.

File

core/modules/node/node.module, line 1056
The core module that allows content to be submitted to the site.

Code

function node_delete($nid) {
  node_delete_multiple(array($nid));
}