function entity_delete_multiple

7.x entity.module entity_delete_multiple($entity_type, $ids)

Permanently delete multiple entities.


$entity_type: The type of the entity.

$ids: An array of entity ids of the entities to delete. In case the entity makes use of a name key, both the names or numeric ids may be passed.

Return value

FALSE if the given entity type isn't compatible to the CRUD API.

4 calls to entity_delete_multiple()
EntityAPITestCase::testCRUDAPIfunctions in entity/entity.test
Tests CRUD API functions: entity_(create|delete|save)
EntityAPITestCase::testExportableHooks in entity/entity.test
Make sure insert() and update() hooks for exportables are invoked.
entity_delete in entity/entity.module
Permanently delete the given entity.
entity_modules_disabled in entity/entity.module
Implements hook_modules_disabled().


entity/entity.module, line 326
Module file for the entity API.


function entity_delete_multiple($entity_type, $ids) {
  $info = entity_get_info($entity_type);
  if (isset($info['deletion callback'])) {
    foreach ($ids as $id) {
      $info['deletion callback']($id);
  elseif (in_array('EntityAPIControllerInterface', class_implements($info['controller class']))) {
  else {
    return FALSE;