.. _line-delete-prefs:


Line Delete Preferences
-----------------------

.. _19.2.1|VOSS-627:
.. _20.1.1|VOSS-670|EKB-3923:


When deleting a phone, device profile or remote destination profile from VOSS-4-UC,
the line or lines (Cisco Unified CM lines) in use by the phones or devices are not
automatically deleted.

Line Delete Preferences provides the ability, for a reseller administrator (or higher)
to control whether the lines are deleted when deleting the phone or device, or updated
(using values contained in a specified configuration template).

A new menu (default = **Customizations > Line Delete Preferences**) allows the
configuration of the following:

* Allow deletion of a line
* Allow update of a line
* Configuration template to use for update (if enabled)

When:

* a phone, device profile or remote destination profile is deleted
* a line is deleted or changed from a phone, device profile or remote destination profile

then the following logic applies:

**Allow Line Deletion if unused**

* If the line is not shared with another phone or device, the line will be deleted
  and the number inventory updated.
* See also :ref:`delete_lines`.  
* If the line exists on another phone belonging to the same user as the deleted device,
  no action is taken.

**Allow Line Update after Device Deletion**

* If the line is not shared with another phone or device, the line is updated with
  the details from the selected configuration template.
* If the line is shared with another phone or device belonging to another user,
  the line is updated with the details from the selected configuration template
  specified in **Line Update Configuration Template name**.
* If the line is shared with another phone or device belonging to the same user,
  then no update is performed.

.. note::

   To determine the user associated with a phone, the owner ID must be set on the
   deleted phone.

**Affected Models**

* Model Type: device/cucm/Phone

  * Operation: Delete
  * Phase: Post Execution
  * Workflow: LineDeletion_PhoneDataSync_PWF
  * Synchronous: False

* Model Type: device/cucm/DeviceProfile

  * Operation: Delete
  * Phase: Post Execution
  * Workflow: LineDeletion_PhoneDataSync_PWF
  * Synchronous: False

* Model Type: device/cucm/RemoteDestinationProfile

  * Operation: Delete
  * Phase: Post Execution
  * Workflow: LineDeletion_PhoneDataSync_PWF
  * Synchronous: False