Send a DELETE request to most FHIR servers and the resource isn’t actually removed. It’s a soft delete. The data is still in the server, hidden from view.
Run a GET request on it using its logical ID and you’ll usually get a 410 status back, which tells you it was deleted. But standard search queries won’t find it. The only way to get the data is through the _history endpoint. In practice, that means knowing the logical ID of the resource.
A hard delete, where the data is gone for good, is another story. Every server does it differently. Some use a parameter on the DELETE request, others use a custom operation.
Most teams never decide which one they want. The app sends a DELETE, the resource vanishes and everyone moves on. Outside of an audit trail, nobody keeps track of what was deleted, when or why.
So the soft-deleted resources build up, many of them orphaned. Flushing them completely from the server never happens. It’s hard to cleanup something when you don’t know it’s there.
But it’s more than just bloat. When a patient withdraws consent, or a data retention policy says records have to be removed, the data needs to be properly and permanently deleted. Soft-deleted resources don’t show up in the searches used to find that data. And because they don’t get found, they never get permanently deleted.
I’ve worked on data retention and cleanup processes for EU data where nobody wanted to know about these orphaned resources. Out of sight, out of mind.
A patient pulls out of a research program and asks for her data to be removed. The delete process searches for everything that references her and performs a hard delete on what comes back. But a dozen Observations soft deleted last year during a data correction process are not returned. They’re still sitting in the server, still linked to her, and they are never deleted. The organization thinks the job is done when it’s not.
Signs to look for:
- No formal and written decision on whether deletes should be soft or hard
- DELETE requests sent with no record kept of what was deleted or why
- Data cleanup processes that rely on search queries to find data
- Hard delete options that have never been used in production
---
I work with teams on a project, retainer or fractional basis. Learn more →