Replacement of deprecated delete_entities() function?

The function delete_entities was deprecated in Elgg 1.7 already. It still works using it in Elgg 1.8 but there's the deprecated warning displayed. The deprecated warning doesn't mention what to use instead of the delete_entities() function though. What is the suggested replacement? If there isn't a single function available as a replacement, is there a suggested piece of code to use instead?