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.
- 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
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
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
- For application
database:
DROP DATABASE <scp_dbname>;
Example:
DROP DATABASE ocscpdb;
- For backup
database:
DROP DATABASE <scp_backupdbname>;
Example:
DROP DATABASE ocscpbackupdb;