purge
Purges a resource from the database without deleting data from the server.
Parameters
The ResourceType of the resource.
The resource ID.
If true, the resource will be purged even if it has local changes. Otherwise, an IllegalStateException will be thrown if local changes exist. Defaults to false.
If you need to purge resources in bulk use the method FhirEngine.purge(type: ResourceType, ids: Set
Purges resources of the specified type from the database identified by their IDs without any deletion of data from the server.
Parameters
The ResourceType
The resource ids Set<Resource.id>
If true, the resource will be purged even if it has local changes. Otherwise, an IllegalStateException will be thrown if local changes exist. Defaults to false.
In the case an exception is thrown by any entry in the list the whole transaction is rolled back and no record is purged.