Deleting Engineering Lifecycle Management instance by using Red Hat OpenShift CLI

For every Engineering Lifecycle Management instance, a different namespace is created and Engineering Lifecycle Management operator is installed. So, when a new project or namespace is created, the existing are deleted. The deleting tells the operator to remove the corresponding deployed resources like pods and services that are associated with the instance.

Procedure

  1. Log in to Red Hat® OpenShift® by using the command line. Log in with the appropriate user role, which has the privilege to delete Engineering Lifecycle Management instance. For more information about user roles, see User roles mapping in Engineering Lifecycle Management on Hybrid Cloud
  2. Log in to your cluster by using the following command.
    oc login --token=<token> --server=<openshift-server-url>
    Where:
    token
    Authentication token for the user to log in to the cluster.
    openshift-server-url
    Red Hat OpenShift cluster server URL.
  3. Delete the Engineering Lifecycle Management instance by using the following command.
    oc delete ELM/<elm-instance-name> -n <namespace-name>
    elm-instance-name
    Engineering Lifecycle Management instance name that you want to delete.
    namespace-name
    Project name where the Engineering Lifecycle Management instance is installed.
    The Engineering Lifecycle Management instance is deleted from the namespace. A confirmation message is shown for the successful deletion.
  4. Delete the configs using the following command
    oc delete configmap elm-auth-type-config -n <namespace-name>
  5. Delete the Secret elm-auth-secret using the following command
    oc delete secret elm-auth-secret -n <namespace-name>
  6. Delete the Persistent Volume Claim elm-shared-pvc and elm-backup-pvc
    oc delete pvc elm-shared-pvc elm-backup-pvc -n <namespace-name>
  7. Delete the Persistent Volume elm-shared-pv and elm-backup-pv
    oc delete pv elm-shared-pv
    oc delete pv elm-backup-pv