.. _line-delete-prefs:


Line delete preferences
-----------------------

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


.. tip:: 

   :ref:`use-action-search-to-navigate-automate`


When deleting a phone, device profile, or remote destination profile from Automate,
the line or lines (Cisco UCM lines) in use by the phones or devices are not
automatically deleted.

Automate's **Line Delete Preferences** allow a Reseller (or higher) administrator to define whether 
the lines are deleted when deleting the phone or device, or updated
(using values contained in a specified configuration template).

You can configure the following via the **Line Delete Preferences** page: 

* 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 is deleted and the number inventory updated. See :ref:`configure-lines`.  
                                           * If the line exists on another phone belonging to the same user as the deleted device, no action is taken.
                                           * If the line is shared with an MGCP Gateway Endpoint, 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, no update is performed.
========================================= =============================================================================================================================================================================================================================

.. note::

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



.. rubric:: 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
