I have a 5000+ entries for custom Entities created by the RedHen module (https://drupal.org/project/redhen). I want to wipe them completely from the system (they are all test entries). How can I do this quickly? I tried to get Views Bulk Operations and the Delete All modules but neither seem to be picking up the custom entities.
You can delete multiple entities using below API functions
Load entities from the database.
The entities are stored in a static memory cache, and will not require database access if loaded again during the same page request.
$entity_type: The entity type to load, e.g. node or user.
$ids: An array of entity IDs, or FALSE to load all entities.
Permanently delete multiple entities.
For Example to delete all node entities
<?php $results = entity_load('node'); $entity_ids = array_keys($results); entity_delete_multiple('node', $entity_ids); ?>
This simple module might help you: https://www.drupal.org/project/entity_bulk_delete