This Serviceis invoked to delete one or more Subscriptionsthat belong to the Client's Session.

Successful completion of this Servicecauses all MonitoredItemsthat use the Subscriptionto be deleted. If this is the last Subscriptionfor the Session, then all Publishrequests still queued for that Sessionare de-queued and shall be returned with Bad_NoSubscription.

Subscriptionsthat were transferred to another Sessionshall be deleted by the Clientthat owns the Session.

Table 103defines the parameters for the Service.

Table 103– DeleteSubscriptions Service Parameters

Name

Type

Description

Request

requestHeader

RequestHeader

Common request parameters (see 7.33for RequestHeaderdefinition).

subscriptionIds []

IntegerId

The Server-assigned identifier for the Subscription(see 7.19for IntegerIddefinition).

Response

responseHeader

ResponseHeader

Common response parameters (see 7.34for ResponseHeaderdefinition).

results []

StatusCode

List of StatusCodesfor the Subscriptionsto delete (see 7.39for StatusCodedefinition). The size and order of the list matches the size and order of the subscriptionIdsrequest parameter.

diagnosticInfos []

DiagnosticInfo

List of diagnostic information for the Subscriptionsto delete (see 7.12for DiagnosticInfo definition). The size and order of the list matches the size and order of the subscriptionIdsrequest parameter. This list is empty if diagnostics information was not requested in the request header or if no diagnostic information was encountered in processing of the request.

Table 104defines the Serviceresults specific to this Service. Common StatusCodesare defined in Table 182.

Table 104– DeleteSubscriptions Service Result Codes

Symbolic Id

Description

Bad_NothingToDo

See Table 182for the description of this result code.

Bad_TooManyOperations

See Table 182for the description of this result code.

Table 105defines values for the resultsparameter that are specific to this Service. Common StatusCodesare defined in Table 183.

Table 105– DeleteSubscriptions Operation Level Result Codes

Symbolic Id

Description

Bad_SubscriptionIdInvalid

See Table 182for the description of this result code.