Deletes an entity revision.
string $entity_type: The entity type to load, e.g. node or user.
$revision_id: The revision ID to delete.
function entity_revision_delete($entity_type, $revision_id) {
entity_get_controller($entity_type)
->deleteRevision($revision_id);
}