function entity_delete

cis7 entity.module entity_delete($entity_type, $id)
cle7 entity.module entity_delete($entity_type, $id)
elmsmedia7 entity.module entity_delete($entity_type, $id)
icor7 entity.module entity_delete($entity_type, $id)
meedjum_blog7 entity.module entity_delete($entity_type, $id)
mooc7 entity.module entity_delete($entity_type, $id)

Permanently delete the given entity.

In case of failures, an exception is thrown.


$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


9 calls to entity_delete()
EntityDefaultFeaturesController::revert in sites/all/modules/ulmus/entity/
Generates the result for hook_features_revert().
EntityDefaultUIController::applyOperation in sites/all/modules/ulmus/entity/includes/
Applies an operation to the given entity.
EntityDrupalWrapper::delete in sites/all/modules/ulmus/entity/includes/
Permanently delete the wrapped entity.
entity_uuid_delete in sites/all/modules/ulmus/uuid/
Permanently delete the given entity by its UUID.
entity_watchdog_watchdog_delete in sites/all/modules/elmsln_contrib/entity_watchdog/entity_watchdog.module
Delete single watchdog entry.

... See full list

14 string references to 'entity_delete'
comment_delete_multiple in modules/comment/comment.module
Delete comments and all their replies.
entity_test_entity_delete in sites/all/modules/ulmus/entity/tests/entity_test.module
Implements hook_entity_delete().
file_delete in includes/
Deletes a file and its database record.
file_delete_multiple in sites/all/modules/ulmus/file_entity/
Delete multiple files.
LTIToolProviderConsumerEntityController::deleteMultiple in sites/all/modules/ulmus/lti_tool_provider/LTIToolProviderConsumerEntityController.class.php
Delete multiple consumers.

... See full list


sites/all/modules/ulmus/entity/entity.module, line 311
Module file for the entity API.


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



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.