function user_delete

7.x user.module user_delete($uid)
6.x user.module user_delete($edit, $uid)

Delete a user.

Parameters

$uid: A user ID.

4 calls to user_delete()
EntityCrudHookTestCase::testUserHooks in drupal-7.x/modules/simpletest/tests/entity_crud_hook_test.test
Tests hook invocations for CRUD operations on users.
FileFieldRevisionTestCase::testRevisions in drupal-7.x/modules/file/tests/file.test
Tests creating multiple revisions of a node and managing attached files.
ProfileCrudTestCase::testUserCRUD in drupal-7.x/modules/profile/profile.test
Test profile integration with user CRUD operations.
_user_cancel in drupal-7.x/modules/user/user.module
Last batch processing step for cancelling a user account.
6 string references to 'user_delete'
TriggerUserTokenTestCase::testUserTriggerTokenReplacement in drupal-7.x/modules/trigger/trigger.test
Tests a variety of token replacements in actions.
trigger_test_action_info in drupal-7.x/modules/trigger/tests/trigger_test.module
Implements hook_action_info().
trigger_trigger_info in drupal-7.x/modules/trigger/trigger.module
Implements hook_trigger_info().
trigger_user_cancel in drupal-7.x/modules/trigger/trigger.module
Implements hook_user_cancel().
trigger_user_delete in drupal-7.x/modules/trigger/trigger.module
Implements hook_user_delete().

... See full list

File

drupal-7.x/modules/user/user.module, line 2509
Enables the user registration and login system.

Code

function user_delete($uid) {
  user_delete_multiple(array($uid));
}