Removing Devices from a Subscription
Use the MtxRequestSubscriberRemoveDevice APIs to remove a device from a subscription.
- Retains all values assigned to the device so that they are readily available if the device is transferred to another subscriber.
- Closes any pending aggregations.
- Removes catalog items associated with the device.
- Generates events.
When removing a device, if a session exists, pass in the deleteSession
flag with a value of true
. This causes the Charging Server to
release the session, including any balance reservations held for it. If you do not pass
in the deleteSession
flag and a session exists, an error is returned
and the operation will fail—regardless of the device status. Adding the
deleteSession
flag is an easy way to determine if there are open
sessions. If the session is inactive
, it is cleaned up automatically by
the Task Manager
during the next scheduled scan of the activity database.