def delete_entity_signal_handler(sender, instance, **kwargs):
if instance.__class__ in entity_registry.entity_registry:<EOL><INDENT>Entity.all_objects.delete_for_obj(instance)<EOL><DEDENT>
Defines a signal handler for syncing an individual entity. Called when
an entity is saved or deleted.