Installation guide

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. T he key and cert files are left in the instance configuration directory,
and the configuration directory is renamed rem oved.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. T hen 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-adm in-console --nodeps
rpm -ev idm-console-fram ework redhat-idm-console --nodeps
Red Hat Directory Server 8.2 Installation Guide
62