It is possible to remove a single instance of Directory Server without uninstalling the system.
/usr/sbin/ds_removal -sserver_id-wadmin_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.
To uninstall Red Hat Directory Server entirely:
- 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
- Stop the Admin Server.
service dirsrv-admin stop
- 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