How to Remove 389 Directory Server on CentOS 6.2

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

See also  How to Install IonCube Loader in CentOS 6 / CentOS 7


/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 :

[root@centos62 ~]# -y -f
Removed admin server and all directory server instances

To Remove 389 Directory Server packages :

[root@centos62 ~]# 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:

[root@centos62 ~]# rm -rf /etc/dirsrv /usr/lib*/dirsrv /var/*/dirsrv /etc/sysconfig/dirsrv*


Leave a Reply

Your email address will not be published. Required fields are marked *