KSC Open API
Kaspersky Security Center API description
SmsQueue::Cancel ( int  nRequestId,
array  pRecipients 
)

Cancel request nRequestId to recipients pRecipients.

If request has not yet been sent to any device, or is marked as failed, it will be removed from SMS queue.
nRequestId must be result of one of Enqueue() calls or value from c_szwRequestId field of c_szwSmsQueueSrvViewName server view.

Parameters:
[in]nRequestId(int) Request id to cancel. Value 0 means all requests to pRecipients will be removed.
[in]pRecipients(array) Recipients to cancel request for. Value null means request will be removed for all recipients