Use > Software management > Remediate and installing software > Uninstall software using a software policy

Uninstall software using a software policy

You can uninstall software installed using a software policy by detaching the policy from a managed server or device group and then remediating the server. The remediation process recognizes that the software policy has been detached and uninstalls the software. You can also remove specific software resource from the attached software policy to uninstall specific software while keeping the policy attached.

Uninstalling software by detaching a software policy has two phases:

Detaching a software policy from the managed server

Simply detaching a software policy from a server does not delete the software policy itself nor does it uninstall the software from the managed server or device group. To uninstall the software, you must detach the software policy from the server or group and then remediate the server.

To detach a software policy from a server:

  1. From the SA Client navigation pane, access the list of managed servers or device groups:
    • Select Devices>Servers>All Managed Servers to view the server list.
    • Select Devices>Device Groups to view the device group list.
  2. From the content pane, select the servers or device groups.
  3. From the View drop-down list, select Software Policies. The software policies attached to the server appear in lower pane.
  4. Select the policy or policies that you want to detach. (Note that inherited policies cannot be detached.)
  5. From the Actions menu, select Detach. The Detach Software Policy window appears.

  6. (Optional) Select Remediate Servers Immediately to remediate the servers against the software policy immediately after detaching the policy. (This is the default setting.)
  7. Click Detach. The policy is removed from the list of policies for that server.
    • If you selected Remediate Servers Immediately, in the Detach Software Policy window, the Remediate window will appear.
    • If you did not select Remediate Servers Immediately, the policy will not be uninstalled from the server until you remediate the server.

Remove (server-software policy) the attachment

Detaching and remediating large policies from managed devices can render the devices unusable due to the large number of packages and their dependencies being uninstalled.

As a solution, this functionality simply removes the association between the software policy and the device without requiring a subsequent remediation job, thus without affecting the device in any way. For example, no package will be uninstalled.

This action can also be applied for detached but not yet remediated policies.

If the device was compliant before this action, the compliance status is preserved.

To remove a server-policy attachment:

  1. From the SA Client navigation pane, access the list of managed servers or device groups:
    1. Select Devices > Servers > All Managed Servers to view the server list.
    2. Select Devices > Device Groups to view the device group list.
  2. From the content pane select the servers or device groups.
  3. From the View drop-down list, select Management Policies > Software Policies .The software policies attached to the server appear in the lower pane.
  4. Select the policy or policies whose server attachment you want to be removed (Note that attachments for inherited policies cannot be removed)
  5. From the Actions menu, select Remove Attachment . The Remove Policy Attachment window appears.

  6. Click Remove Attachment . The association between the policy and the server is removed.

Remediate a server to remove software

Perform the tasks described in Specify the remediation options. The software specified in the detached software policy will be removed from the managed server.

When you detach a software policy from a server and then remediate:

  1. Any software packages contained in the policy are physically uninstalled from the server during the remediation process, unless:
    • the same package(s) are also contained in other software policies that are attached to the server, or
    • SA has determined that the package is a prerequisite for other packages currently installed on the server
  2. Application configurations contained in the policy are detached, but the configuration files are left on the server