You can use DSCC to perform this task. For information, see Directory Service Control Center Interface and the DSCC online help.
Stop the Directory Server.
$ dsadm stop instance-path |
If you have previously used DSCC to manage the server, use the command line to unregister the server.
$ dsccreg remove-server /local/ds Enter DSCC administrator's password: /local/ds is an instance of DS Enter password of "cn=Directory Manager" for /local/ds: This operation will restart /local/ds. Do you want to continue ? (y/n) y Unregistering /local/ds from DSCC on localhost. Connecting to /local/ds Disabling DSCC access to /local/ds Restarting /local/ds |
For details, see the dsccreg(1M) man page.
(Optional) If you previously enabled the server instance in a service management solution, disable the server from being managed as a service.
Operating System |
Command |
---|---|
Solaris 10 |
If you are operating in a Sun Cluster environment, use this command: dsadm disable-service --type CLUSTER instance-path Otherwise: dsadm disable-service --type SMF instance-path |
Solaris 9 |
If you are operating in a Sun Cluster environment, use this command: dsadm disable-service --type CLUSTER instance-path Otherwise: dsadm autostart --off instance-path |
Linux, HP-UX |
dsadm autostart --off instance-path |
Windows |
dsadm disable-service --type WIN_SERVICE instance-path |
Delete the server instance.
$ dsadm delete instance-path |
This command removes everything, including the database and the data.
If the instance has been enabled as a service, or if the instance is started automatically at system startup, dsadm delete requires root access.