6 Uninstalling SCP

This chapter provides information about uninstalling SCP.

6.1 Uninstalling SCP Using Helm

To uninstall SCP using Helm, perform the following procedure on a server that has access to Kubectl and Helm commands.

  1. To uninstall SCP, run the following command:
    helm uninstall <release_name> --namespace <namespace>

    Where, <release_name> is a name provided by the user to identify the Helm deployment.

    Helm keeps a record of its releases, so you can still reactivate the release after uninstalling it.

    Example:

    helm uninstall ocscp --namespace scp

Note:

By default, SCP uses Helm 3.

6.2 Deleting Kubernetes Namespace

This section describes how to delete Kubernetes namespace where SCP is deployed.
To delete kubernetes namespace, run the following command:
kubectl delete namespace <release_namespace>

Where, <release_namespace> is the deployment namespace used by the Helm command.

Example:

kubectl delete namespace ocscp

6.3 Removing Database Users

This section describes how to remove MySQL users.

To remove MySQL users while uninstalling SCP, run the following commands:

Remove Privileged User:

DROP USER IF EXISTS <SCP Privileged-User Name>;

Example:

DROP USER IF EXISTS scpprivilegedusr';

Remove Application User:

DROP USER IF EXISTS <SCP Application User Name>;

Example:

DROP USER IF EXISTS scpusr;

Caution:

Removal of users must be done on all the SQL nodes for all SCP sites.

6.4 Removing the Application and Backup Database

This section describes how to remove the application and backup database.
Run the following commands to remove the application and backup database:
  • For application database:
    DROP DATABASE <scp_dbname>;

    Example:

    DROP DATABASE ocscpdb;
  • For backup database:
    DROP DATABASE <scp_backupdbname>;

    Example:

    DROP DATABASE ocscpbackupdb;