capabilities.work

Find And Delete Resource

A 3-step recipe with Medplum. We can help you get access.

Recipe · 3 steps

Find And Delete Resource

with Medplum · Healthcare Interoperability Operations

Find a resource via search and delete it if present.

  1. Search the resource type. Medplum returns a FHIR Bundle whose entry array holds any matching resources.
  2. Read the matched resource by id to capture an audit snapshot before it is deleted.
  3. Delete the matched resource by id. Medplum returns 204 No Content on a successful delete.
What you'll need to have ready
  • resourceType: The FHIR resource type to search and potentially delete.
For your developer

Arazzo workflow medplum:find-and-delete-resource, 3 operations: search → readResource → deleteResource. Specs on APIs.io.