Uninstalling the Guardium Insights instance

This topic describes the steps that you take to remove GuardiumĀ® Insights.

Important: The uninstallation steps are irreversible. Make sure you back up any data that you wish to keep or move to a new installation.

Procedure

  1. Export the namespace where Guardium Insights is installed:
    export NAMESPACE=<guardium_insights_namespace>
  2. Remove the Guardium Insights instance:
    oc delete `oc get guardiuminsights -oname -n ${NAMESPACE}` -n ${NAMESPACE}

    The output should be similar to:

    guardiuminsights.gi.ds.isc.ibm.com "staging" deleted
  3. Clean up Guardium Insights dependencies:
    oc delete $(oc get tenantguc -oname) || true
    oc delete $(oc get tenantminisnif -oname) || true
  4. Optional: Remove remaining persistent volume claims:
    oc delete `oc get pvc -oname -n ${NAMESPACE}` -n ${NAMESPACE}
  5. Uninstall the operators:
    For Guardium Insights 3.2.10 and later:
    oc ibm-pak launch $CASE_NAME \
      --version $CASE_VERSION \
      --namespace ${NAMESPACE} \
      --inventory install \
      --action uninstall-operator \
      --args "--registry cp.icr.io --user ${CP_REPO_USER} --pass ${CP_REPO_PASS} --secret ibm-entitlement-key --inputDir ${LOCAL_CASE_DIR}"
    For Guardium Insights 3.2.8 and earlier:
    cloudctl case launch \
      --case ${LOCAL_CASE_DIR}/${CASE_ARCHIVE} \
      --namespace ${NAMESPACE} \
      --inventory install \
      --action uninstall-operator \
      --tolerance 1
  6. Uninstall the catalogs:
    For Guardium Insights 3.2.10 and later:
    oc ibm-pak launch $CASE_NAME \
    --version $CASE_VERSION \
    --namespace ${NAMESPACE} \
    --inventory install \
    --action uninstall-catalog \
    --args "--inputDir ${LOCAL_CASE_DIR}"
    For Guardium Insights 3.2.8 and earlier:
    cloudctl case launch \
    --case ${LOCAL_CASE_DIR}/${CASE_ARCHIVE} \
    --namespace openshift-marketplace \
    --inventory install \
    --action uninstall-catalog \
    --tolerance 1
    --args "registry cp.icr.io --user ${CP_REPO_USER} --pass ${CP_REPO_PASS} --secret ibm-entitlement-key --inputDir ${LOCAL_CASE_DIR}"
  7. Switch to the default namespace (if inside the Guardium Insights namespace) and delete the Guardium Insights namespace:
    oc project default
    oc delete project ${NAMESPACE}
    Note: This action may take a few minutes to complete. During this time the project will appear as Terminating.
  8. If you wish to also uninstall the IBM Common Services operators, please follow these instructions.