How to Remove 389 Directory Server on CentOS 6.2

Share this Article :

In this post, i will show you the quick step to remove 389 Directory Server on linux CentOS 6.2 server. This is actually to remove the directory instances. This can be perform by using ds_removal or It will remove all of the instance specific files and paths except for the slapd-INSTANCENAME directory, which is just renamed to slapd-INSTANCENAME.removed. If you don’t want to keep any of your configuration or key/cert data, you can erase this directory. If you are using the console/admin server, and the machine is the one hosting the configuration directory server (i.e. this is the first machine you ran on), and you just want to wipe out everything and start over, use

Also Read :   Why I Choose HostGator rather than MERCUMAYA.NET Web Hosting?


/usr/sbin/ [-f] [-d -d ...]

 Opts: -f            - force removal
       -d            - turn on debugging output
       -y            - actually do the removal
WARNING: This command is extremely destructive!
         It will remove all of the data and configuration
         of all directory servers and admin servers, with
         no chance of recovery.  Therefore, in order to actually
         do this, you must give the -y option.

To remove 389 Directory Server instances on CentOS 6.2 :

[[email protected] ~]# -y -f
Removed admin server and all directory server instances

To Remove 389 Directory Server packages :

[[email protected] ~]# yum remove 389-ds-base-libs 389-adminutil idm-console-framework -y

After removing all of the packages, you can do something like this to make sure your system is back to a clean state:

[[email protected] ~]# rm -rf /etc/dirsrv /usr/lib*/dirsrv /var/*/dirsrv /etc/sysconfig/dirsrv*

Leave a Reply