I programmatically created a series of custom content entities which contain field collections. My site had an execution timeout error in the middle of entity creation and saving.
I can not delete some of these entities. Any attempt is met with:
The website encountered an unexpected error. Please try again later.
Drupal\Core\Entity\EntityStorageException: Unable to save a field collection item without a valid reference to a host entity in Drupal\Core\Entity\Sql\SqlContentEntityStorage->delete() (line 718 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
I need to be able to delete these host entities. They are still showing up in my entity list. I can edit and save them, I just cannot delete them.
How can I delete the host entities?