Uninstalling the servers
You can run the uninstall command-line utility for quick removal of the server. The command runs in either of the following modes:
- Interactive mode
-
Interactive mode prompts you for input in a text-based interface.
To use this mode, run the
uninstallcommand without any options. - Non-interactive mode
-
Non-interactive mode uninstalls the server without displaying any processing information, except for fatal errors.
To use this mode, run the
uninstallcommand with the--no-promptoption.
|
Interactive mode
You must run the uninstall command as either the root user or the same user (or role) that installed the server.
To uninstall the server in interactive mode:
Steps
-
From the server root directory, run the
uninstallcommand.Example:
$ ./uninstall -
Select the components to be removed.
Choose from:
-
Remove all components: If you want to remove all components, press Enter to accept the default (remove all).
-
Select the components to be removed: If you don’t want to remove all components, enter the option to specify the removal of only specific components.
For each type of server component, press Enter to remove it or type
noto keep it.
-
-
Follow the next steps for your server type:
Choose from:
-
For standalone servers, delete any files or directories that the
uninstalltool couldn’t remove. The uninstallation is complete. -
For replicated servers, continue with the following steps:
-
Type
yesto provide your authentication credentials (Global Administrator ID and password). -
Enter the Global Administrator ID and password to remove references to this server in other replicated servers, and then enter or verify the host name or IP address for the server that you’re uninstalling.
-
Select how you want to trust the server certificate if you have set up SSL or StartTLS. Press Enter to accept the default.
Example:
How do you want to trust the server certificate for the PingDirectory Server on server.example.com:389? 1) Automatically trust 2) Use a trust store 3) Manually validate Enter choice [3]:
-
-
Non-interactive mode
To uninstall the server in non-interactive mode:
Steps
-
Run
uninstallwith the appropriate options:Choose from:
-
To remove all of the server’s libraries, include the
--remove-alloption.Example:
The following command assumes that the server is standalone and not part of a replication topology:
$ ./uninstall --remove-all --no-prompt --quiet --ignoreWarnings-
You can use the
--ignoreWarningsoption to continue the uninstall process even when an error occurs. Otherwise, if an option is incorrectly entered or a required option is omitted, the command fails and aborts. -
The
--quietoption suppresses output information.
-
-
To remove the server’s backup files, include the
--backup-filesoption.Example:
$ ./uninstall --backup-files --no-prompt --quiet --ignoreWarningsTo view the other options available to remove specific components, use the
--helpor-Hoption.
-