This topic describes how to uninstall OCP Community Edition. The procedure varies depending on the OCP version. You can refer to the procedure below based on your OCP version.
Procedure
Log in to the OCP host and run the following commands in any directory:
# Uninstall OCP
obd cluster destroy <OCP name>
# Uninstall the MetaDB cluster
obd cluster destroy <MetaDB name>
In the commands, OCP name is the name of the OCP cluster that you configured on the Deploy OCP > Configure OCP page; MetaDB name is the name of the MetaDB cluster that you configured on the Deploy OCP > Configure MetaDB page. Before you uninstall the MetaDB cluster, you must make sure that the cluster is not used by other businesses.
Verification
After OCP is uninstalled, verify the following information:
Run the
ps -ef | grep ocp-servercommand to confirm that the ocp-server process on the MetaDB cluster host no longer exists.The following figure shows the query result when the process does not exist.

Confirm that the OCP installation directory is empty.
