What happens to the history if you delete a hive or apiary
The history of the colony (its diseases and treatments, for instance) and of the queen stays, because those are separate records in the app.
Deleting a hive does not delete the colony. To close a colony’s life cycle properly, set its state to “Died”, “Absconded” or “Sold” — see Colonies.
Components from a deleted hive stay in the app as well — they are moved to storage automatically.