Use this endpoint to permanently delete a FHIR R4 resource through the passthrough gateway. Tenant ownership is verified before deletion proceeds — you can only delete resources that belong to your tenant. This operation is irreversible; consider whether a status update on the resource is more appropriate for your use case.
Request
DELETE https://api.clinikapi.com/v1/fhir/:resourceType/:id
Your ClinikAPI secret key (clk_live_* or clk_test_*).
Path parameters
The FHIR resource type (e.g. Observation, Condition, MedicationRequest).
The ID of the FHIR resource to delete (e.g. obs_xyz789).
Response
Returns 204 No Content with an empty body on success. If the resource does not exist or does not belong to your tenant, the API returns 404 Not Found.
Examples
curl
curl -X DELETE https://api.clinikapi.com/v1/fhir/Observation/obs_xyz789 \
-H "x-api-key: clk_live_abc123"
TypeScript SDK
import { Clinik } from '@clinikapi/sdk';
const clinik = new Clinik(process.env.CLINIKAPI_SECRET_KEY!);
// Delete an Observation
await clinik.fhir.request('DELETE', '/Observation/obs_xyz789');
// Resolves with no return value on success (204 No Content)
// Delete a Condition
await clinik.fhir.request('DELETE', '/Condition/cond_abc456');