 | IHdsiServiceContractDelete Method |
Deletes the specified resource from the server
Namespace: SanteDB.Rest.HDSIAssembly: SanteDB.Rest.HDSI (in SanteDB.Rest.HDSI.dll) Version: 3.0.2081-alpha+19f573cdc8c56fbc278c5e41a734f011a9baa699
SyntaxIdentifiedData Delete(
string resourceType,
string id
)
Function Delete (
resourceType As String,
id As String
) As IdentifiedData
IdentifiedData^ Delete(
String^ resourceType,
String^ id
)
abstract Delete :
resourceType : string *
id : string -> IdentifiedData Parameters
- resourceType String
- The type of resource to be deleted
- id String
- The identifier of the resource to be deleted
Return Value
IdentifiedDataThe deleted object
RemarksThis operation either logically or permanently deletes the identified resource so that it no longer appears in general searches. The method of deletion is controlled by the
X-SanteDB-DeleteMode header:
| LogicalDelete | Creates a null head version of the object which no longer appears in searches, however can be restored from the database |
| PermanentDelete | Purges the record from the CDR |
See Also