Deleting Devices

Use the DeleteDevice APIs to delete a device from the subscriber database.

You cannot delete a device that has pending aggregations, open sessions, or stale sessions. To delete a device with pending aggregations, you first must use the SubscriberRemoveDevice API to close the pending aggregations. Use the SubscriberRemoveDevice deleteSession flag to delete any open or stale Gy sessions. SubscriberRemoveDevice must be called in a separate transaction from DeleteDevice. These two APIs cannot be used together in a multi-request call.

The device must have a status of active or suspended. If the device has an inactive status, the delete operation will fail and an error message is returned.

When you delete a device, the Charging Server does the following:
  • Deletes all values assigned to the device.

    When the device is deleted, all information associated with the device is also deleted, such as the external ID, access numbers, and IMSI.

  • Generates events.
Remember: You cannot delete a device from a subscriber if there are any active Gy sessions associated with the device. Active policy (Gx, Sy) sessions are ignored. If a device with active policy sessions is deleted, the Charging Server does not issue an ASR to the PCRF or PCEF. For information about configuring device sessions, see the discussion about global system configuration in MATRIXX Configuration.