Delete a document
DELETE
/document/{id}dev
https://api.sandbox.ovok.comDelete document
Deletes a document and its associated file from the system.
Parameters
| Parameter | In | Description | Example |
|---|---|---|---|
id | path | The id of the DocumentReference resource to delete | 023f2f- |
Response
{
"message": "Document deleted successfully"
}
Note: This operation will permanently delete both the DocumentReference metadata and the associated binary file from S3. This action cannot be undone.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | FHIR DocumentReference id of the document to delete. Removes the underlying binary and the reference resource. |
Responses
| Code | Description |
|---|---|
200 | Success. |
400 | The request could not be operated by the server. |
401 | The resource owner or authorization server denied the request. |
404 | The requested resource could not be found. |
422 | The request could not be validated by the server. |
500 | The server encountered an unexpected condition. Please try again later. |
200 → DocumentDeletedResponseDto (application/json)
Document deletion acknowledgement.
message:string(required)