Hi @PaulK
This can happen when the individual has existing social relationships . If you remove the social relationships form the individual page first, you should then be able to remove the identity and then delete the encounter.
I’ve made a ticket to improve the error message for this use case.
opened 05:34PM - 06 Sep 24 UTC
bug
**Expected behavior**
When a marked individual (`individuals.jsp`) has only one … encounter associated with it, removing the Identity from the encounter page will delete the individual.
**Current behavior**
When an individual has only one encounter associated with it, removing the identity from the encounter page will **not** delete the individual if it has social relationships. Users see:
`Error: You can't remove this encounter from a marked individual because it is not assigned to one. it is not assigned to one.`
The message should instead tell users, "You can't remove this encounter from a marked individual because it has one or more social relationships."

<img src="https://github.com/user-attachments/assets/13b9b9ef-b04e-4a17-91d0-eabf7fd2da39" width="500">
Steps to reproduce:
1. Find or create a Marked Individual with a social relationship (`individuals.jsp`) with one encounter
2. From the encounter page (`encounter.jsp`), click the **Edit** button of the **Identity** section
3. Under **Manage Identity**, click the **Remove** button next to **Remove from marked individual**
4. "You can't remove this encounter from a marked individual because it is not assigned to one" message appears
**Community link**
- https://community.wildme.org/t/cannot-delete-encounter/2623
- https://community.wildme.org/t/unable-to-delete-an-encounter-on-whiskerbook/3321