You are here

function entity_delete in Entity API 7

Permanently delete the given entity.

In case of failures, an exception is thrown.

Parameters

$entity_type: The type of the entity.

$id: The uniform identifier of the entity to delete.

Return value

FALSE, if there were no information how to delete the entity.

See also

entity_type_supports()

6 calls to entity_delete()
EntityAPITestCase::testCRUDAPIfunctions in ./entity.test
Tests CRUD API functions: entity_(create|delete|save)
EntityAPITestCase::testCRUDRevisisions in ./entity.test
Tests CRUD for entities supporting revisions.
EntityDefaultUIController::applyOperation in includes/entity.ui.inc
Applies an operation to the given entity.
EntityDrupalWrapper::delete in includes/entity.wrapper.inc
Permanently delete the wrapped entity.
EntityMetadataIntegrationTestCase::testCRUDfunctions in ./entity.test
Runs some generic tests on each entity.

... See full list

File

./entity.module, line 319

Code

function entity_delete($entity_type, $id) {
  return entity_delete_multiple($entity_type, array(
    $id,
  ));
}