This guide will show you how to delete policies using the Univention Directory Manager (UDM). Follow the steps below to list and remove specific policies from your system.
First, you need to list all existing policies to identify which one you want to remove. Use the following command:
udm policies/policy list | grep DN:
Once you have identified the policy you wish to remove, use the remove
command with its distinguished name (DN). Replace cn=ucc-thinclient-settings,cn=ucc,cn=policies,dc=school,dc=local
with the DN of the policy you want to delete:
udm policies/policy remove --dn "cn=ucc-thinclient-settings,cn=ucc,cn=policies,dc=school,dc=local"
After removing the policy, restart the Univention Directory Policy service to apply the changes:
/etc/init.d/univention-directory-policy start