Before you delete the server instance, you must prepare the instance for deletion. Refer to the following procedure to delete a server instance successfully:
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 [--force] instance-path |
If the server was previously registered with DSCC, unregister the server using the following command:
$ dsccreg remove-server /local/dsInst Enter DSCC administrator's password: /local/dsInst is an instance of DS Enter password of "cn=Directory Manager" for /local/dsInst: This operation will restart /local/dsInst. Do you want to continue ? (y/n) y Unregistering /local/dsInst from DSCC on localhost. Connecting to /local/dsInst Disabling DSCC access to /local/dsInst Restarting /local/dsInst |
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 |
dsadm disable-service --type SMF instance-path |
Solaris 9 |
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, under the instance-path directory.
If the instance has been enabled as a service, or if the instance is started automatically at system startup, dsadm delete requires root access.