This Service is used to remove one or more MonitoredItems of a Subscription. When a MonitoredItem is deleted, its triggered item links are also deleted.
Successful removal of a MonitoredItem, however, might not remove Notifications for the MonitoredItem that are in the process of being sent by the Subscription. Therefore, Clients may receive Notifications for the MonitoredItem after they have received a positive response that the MonitoredItem has been deleted.
Table 81 defines the parameters for the Service.
Table 81 – DeleteMonitoredItems Service Parameters
|requestHeader||RequestHeader||Common request parameters (see 7.33 for RequestHeader definition).|
|subscriptionId||IntegerId||The Server-assigned identifier for the Subscription that contains the MonitoredItems to be deleted (see 7.19 for IntegerId definition).|
|monitoredItemIds ||IntegerId||List of Server-assigned ids for the MonitoredItems to be deleted.|
|responseHeader||Response Header||Common response parameters (see 7.34 for ResponseHeader definition).|
|results ||StatusCode||List of StatusCodes for the MonitoredItems to delete (see 7.39 for StatusCode definition). The size and order of the list matches the size and order of the monitoredItemIds request parameter.|
|diagnosticInfos ||DiagnosticInfo||List of diagnostic information for the MonitoredItems to delete (see 7.12 for DiagnosticInfo definition). The size and order of the list matches the size and order of the monitoredItemIds request 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 82 – DeleteMonitoredItems Service Result Codes
|Bad_NothingToDo||See Table 182 for the description of this result code.|
|Bad_TooManyOperations||See Table 182 for the description of this result code.|
|Bad_SubscriptionIdInvalid||See Table 182 for the description of this result code.|
Table 83 – DeleteMonitoredItems Operation Level Result Codes
|Bad_MonitoredItemIdInvalid||See Table 183 for the description of this result code.|