Delete
You can delete a resource on an FHIR server by performing a Delete operation. The Delete uses an HTTP DELETE against the URL [baseUrl]/[resourceType]/[id].
This operation performs a logical delete, which has a specific set of
semantics:
- The resource is marked as deleted, and it no longer appears in search results.
- The version number of the resource is incremented (that is, a new deleted version is created).
- Previous versions of the resource are not physically deleted.
- The resource may be un-deleted by updating it again.
The following example shows a simple delete of the resource created and updated in the examples in Create and Update.
Request: FHIR CRUD Delete operation
Response: FHIR CRUD Delete operation
The endpoint responds with a response similar to the following:
Parent topic: FHIR CRUD (Create/Read/Update/Delete) operations