.. Reminder for header structure:
  Parts (H1)          : #################### with overline
  Chapters (H2)       : ******************** with overline
  Sections (H3)       : ====================
  Subsections (H4)    : --------------------
  Subsubsections (H5) : ^^^^^^^^^^^^^^^^^^^^
  Paragraphs (H6)     : """""""""""""""""""""

.. meta::
 :description: Quickstart - Uninstall a WAPT Package
 :keywords: Quickstart, WAPT, Agent, Uninstall

.. _quickstart_uninstall_package:

#####################################
Quickstart - Uninstall a WAPT Package
#####################################

The purpose of this documentation is to guide you through your first experience with the following steps:

- Remove a package dependency from a host.
- Uninstall the package from a host.

For more information about the dependency mechanism of WAPT, you can refer to :ref:`this documentation <dependency_mechanism>`.

.. note::
  If a package is installed on a workstation, removing a dependency will not uninstall the package itself.
  
  To uninstall a package from multiple workstations, you must explicitly uninstall it.

***************************************
Remove a package dependency from a host
***************************************

- Open the WAPT Console.

- Navigate to the :guilabel:`Packages Inventory` tab.

- Right-click → :guilabel:`Edit Host`.

.. figure:: wapt-resources/wapt-edit_host.png
  :scale: 75%
  :align: center
  :alt: Edit Host

  Edit Host

**In the** :guilabel:`Edit Host` **window:**

- Select the package you want to remove the dependency from in the left-side list (e.g., wapt-vlc). (1)

- Right-Click on the desired package → :guilabel:`Remove Dependency`. (2)

- The package will disapear in the left-side list.

- Click :guilabel:`Save and Apply`. (3)

.. figure:: wapt-resources/wapt-remove_depedancy.png
  :scale: 75%
  :align: center
  :alt: Remove Depedancy

  Remove Depedancy
  
The **package dependency has now been removed**, and the machine **will no longer attempt to reinstall the package automatically**.

*********************************
Uninstall the package from a host
*********************************

- Go on the :guilabel:`Inventory` tab. (1)

- Select the machine from which you want to remove a software package (e.g., wapt-vlc). (2)

- Navigate to the :guilabel:`Host packages`. (3) 

- Select the package you want to remove from the list (e.g., wapt-vlc). (4)

- Right-Click → :guilabel:`Uninstall packages`. (5)

.. figure:: wapt-resources/wapt-uninstall_package.png
  :scale: 75%
  :align: center
  :alt: Uninstall Package

  Uninstall Package

- You can follow the progress in the :guilabel:`Host Tasks` tab.

- Return on the :guilabel:`Host packages`, Refresh the waptconsole. The package has disapear.

**Congratulations!** You've successfully remove a depedancy and uninstall a package on a machine.
