Closed mrouhi13 closed 7 months ago
The delete method needs to support _cascade param in case the resource has been referenced in the other resources. Currently, there is no way to force delete a resource, so it would be nice if add this feature to the delete method.
delete
_cascade
Something like this:
client.reference('Practitioner', id=practitioner_id).to_resource().delete(cascade=True)
or
client.reference('Practitioner', id=practitioner_id).to_resource().delete(params={'_cascade': 'delete'})
I figured out this feature was implemented before in another way, so I closed the issue.
The
delete
method needs to support_cascade
param in case the resource has been referenced in the other resources. Currently, there is no way to force delete a resource, so it would be nice if add this feature to thedelete
method.Something like this:
client.reference('Practitioner', id=practitioner_id).to_resource().delete(cascade=True)
or
client.reference('Practitioner', id=practitioner_id).to_resource().delete(params={'_cascade': 'delete'})