L_LTDIC_API L_INT L_DicomSendNDeleteRequest(hNet, nPresentationID, nMessageID, pszClass, pszInstance)
A DICOM Network handle to the peer member of the connection.
Presentation ID. The presentation ID provides information about both the class type of the data and the transfer syntax to use when transferring the data.
Message ID. Each message sent by a member of a connection should have a unique ID. Since a member of a connection may send several messages, this ID allows that member to identify when a specific request has been completed.
Class affected by the request. This will be an SOP Class or an SOP MetaClass.
The instance of the class. A server may, for example, have three instances of the Nuclear Medicine Class. This value specifies an instance.
|DICOM_SUCCESS||The function was successful.|
|>0||An error occurred. Refer to Return Codes.|
Calling this function generates a call to RECEIVENDELETEREQUESTCALLBACK on the SCP. The SCP should respond by calling L_DicomSendNDeleteResponse which will generate a call to RECEIVENDELETERESPONSECALLBACK.
This function requests that the SCP delete the specified SOP Instance.
Required DLLs and Libraries
Win32, x64, Linux.
L_INT DicomSendNDeleteRequestExample(HDICOMNET hNet)
/* send a Delete Request Command to the server */
hPDU = L_DicomGetAssociate(hNet);
/* this sample uses fixed values */
nID = L_DicomFindAbstract(hPDU, szUID);
if(nID == 0)
wsprintf(szMsg, TEXT("Abstract Syntax %s Not Supported by Association!"), szUID);
MessageBox(NULL, szMsg, TEXT("Error"), MB_OK);
/* now, use the high-level method to send the command set */
nRet = L_DicomSendNDeleteRequest(hNet, nID, 1, szUID, szInstance);
if (nRet != DICOM_SUCCESS)
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries