4 Uninstalling SCP

SCP can be uninstalled as follows. Execute the following steps from a server that has access to Kubectl and helm commands.

  1. Execute the following command to uninstall SCP:
    $ helm delete <SCP_deployment_namespace> --purge
  2. Execute the following command to remove SCP custom resources definitions:
    $ kubectl get crds -o name | grep <SCP_deployment_namespace>.oracle.io | xargs kubectl delete

    Example: $ kubectl get crds -o name | grep scp.oracle.io | xargs kubectl delete

  3. Execute the following command to delete the namespace:
    kubectl delete namespace <SCP_deployment_namespace>

    Note: Deleting the namespace deletes all the other Kubernates objects in that namespace.

  4. Execute the following steps to cleanup DB:
    1. Login to mysql client on SQL NODE with scp user and password:
      mysql -h <IP_adress of SQL Node> -uscpuser -pscppass
    2. Change to scp db and drop the following tables:
      mysql> use ocscpdb;
      mysql> drop table NF_PROFILES;
      mysql> drop table TOPOLOGY_SOURCE_INFO;
      mysql> drop table NRF_NF_DETAILS;
      mysql> drop table NF_SUBSCRIPTIONS;
    3. Optionally, AMF and SMF subscriber data tables should be dropped if SDS app was enabled and old subscriber data need to be purged before new installation.
      mysql> drop table SubscriberAmfBindingPei;
      mysql> drop table SubscriberAmfBindingGpsi;
      mysql> drop table SubscriberAmfBindingData;
      mysql> drop table SubscriberSmfBindingData;