# How to retain policies when removing a device from a Device Group in Hexnode UEM?

Executive Summary
-----------------

[Device groups](https://www.hexnode.com/mobile-device-management/help/custom-device-groups/) in Hexnode are commonly used to apply policies to multiple devices at once. When a device is removed from a device group, the policies associated through that device group are no longer applied to the device. To prevent policy configurations or managed content from being removed, associate the required policies directly with the individual device before removing it from the group.

This approach is useful when a device must be moved out of a group while retaining selected policies. Policies can be targeted at multiple entities, including both device groups and individual devices. A direct device-level policy association continues to apply even after the group-level association no longer applies.

When to use this workflow
-------------------------

- A device must be removed from a device group, but its existing policy configurations should remain unchanged.
- The same policy is already associated with both the device group and the individual device.
- A policy needs to remain on a specific device after the group-level policy association is removed.

Important behavior to know before removing a device from a device group
-----------------------------------------------------------------------

When a device is removed from a device group, the policy associations inherited from that group are removed from the device. However, policies that are directly associated with the device remain applied.

**Example:** If a policy is associated with both a device group and an individual device, removing the device from the device group removes only the group-based association. The direct device association remains, so the policy continues to apply to the device.

**Note:** If a policy is applied only through the device group and is not directly associated with the device, that policy will no longer apply to the device after it is removed from the group.

Preserve policies before removing a device from a device group
--------------------------------------------------------------

1. Identify the policies currently applied to the device through the device group.
2. Go to the **Policies** tab in the Hexnode UEM portal.
3. Select one of the policies that must remain on the device.
4. Click **Manage** > **Associate Targets**. Alternatively, open the policy, click **Modify**, and go to **Policy Targets**.
5. Click **Devices** or **+Add Devices**.
6. Select the specific device that must retain the policy.
7. Click **OK** or **Associate**.
8. Save the policy.
9. Repeat the same process for each policy that must remain on the device.
10. After the required policies are directly associated with the device, remove the device from the device group.

**Warning:** Test this workflow with a test device before applying it to production devices. This helps verify that the expected policies remain on the device after it is removed from the device group.

Expected result
---------------

After the device is removed from the device group, policies that were directly associated with the device remain applied. Policies that were associated only through the device group are removed from the device.

Related Topics
--------------

1. [Add Device Groups in Hexnode UEM](https://www.hexnode.com/mobile-device-management/help/custom-device-groups/)
2. [How to Delete User, Device Group or User Group](https://www.hexnode.com/mobile-device-management/help/delete-user-device-group-or-user-group-using-hexnode-mdm/)