4.7. Uninstalling Directory Server

4.7.1. Removing a Single Directory Server Instance

It is possible to remove a single instance of Directory Server without uninstalling the system.
/usr/sbin/ds_removal -s server_id -w admin_password [-f]
The ds_removal script unregisters the server from the Configuration Directory Server and removes any related files and directories. The key and cert files are left in the instance configuration directory, and the configuration directory is renamed removed.instance-name.

NOTE

If there is a problem with the Directory Server, like the installation failed or the server cannot be restarted, then running ds_removal fails. In this case, try the -f option to force the removal process.

4.7.2. Uninstalling Directory Server

To uninstall Red Hat Directory Server entirely:
  1. Remove all of the Directory Server instances. Each Directory Server instance service must be running for the remove script to access it.
    /usr/sbin/ds_removal -s example1 -w secret
    /usr/sbin/ds_removal -s example2 -w secret
    /usr/sbin/ds_removal -s example3 -w secret
  2. Stop the Admin Server.
    service dirsrv-admin stop
  3. Then use the system tools to remove the packages. For example:
    rpm -ev svrcore mozldap mozldap-tools perl-Mozilla-LDAP --nodeps
    rpm -ev redhat-ds-base --nodeps
    rpm -ev redhat-ds-admin redhat-ds-console redhat-admin-console --nodeps
    rpm -ev idm-console-framework redhat-idm-console --nodeps