function node_delete

Deletes a node.

Parameters

$nid: A node ID.

10 calls to node_delete()
CommentNodeChangesTest::testNodeDeletion in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentNodeChangesTest.php
Tests that comments are deleted with the node.
EntityCrudHookTest::testNodeHooks in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php
Tests hook invocations for CRUD operations on nodes.
FileFieldWidgetTest::testPrivateFileSetting in drupal/core/modules/file/lib/Drupal/file/Tests/FileFieldWidgetTest.php
Tests a file field with a "Private files" upload destination setting.
node_delete_confirm_submit in drupal/core/modules/node/node.pages.inc
Form submission handler for node_delete_confirm().
OptionsFieldUITest::testOptionsAllowedValuesFloat in drupal/core/modules/field/modules/options/lib/Drupal/options/Tests/OptionsFieldUITest.php
Options (float) : test 'allowed values' input.

... See full list

File

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

Code

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