Delete

FHIR logical deletes can be performed as a part of a transaction, as well. In a transaction bundle, deletes will be applied as a group, meaning that if one fails, all will be rolled back.

The following example shows deletes in a FHIR transaction.

{
  "resourceType": "Bundle",
  "type": "transaction",
  "entry": [ {
  "request": {  
      "method": "DELETE",
      "url": "Patient/A0"
    }
	  }, {
   "request": {
      "method": "DELETE",
      "url": "Patient/A1"
	    }
  } ]
}