I am trying to delete a patient using delete and $expunge, I am able to do it at system level but at the instance level keep getting 405 method not allowed.
System-Level http://localhost:8080/smart-pgd-fhir/v1/$expunge Post { "resourceType": "Parameters", "parameter": [ { "name": "expungeDeletedResources", "valueBoolean": true },{ "name": "expungePreviousVersions", "valueBoolean": true } ] }
Instance-level http://localhost:8080/smart-pgd-fhir/v1/Patient/7f73bd2b-2647-4c0d-8dc9-798ffe719924/$expunge Post
{ "resourceType": "Parameters", "parameter": [ { "name": "expungeDeletedResources", "valueBoolean": true },{ "name": "expungePreviousVersions", "valueBoolean": true } ] }
I am using this example https://smilecdr.com/docs/fhir_repository/deleting_data.html#expunge