Skip to content

Latest commit

 

History

History
62 lines (50 loc) · 1.85 KB

uninstalling-mtv-cli.adoc

File metadata and controls

62 lines (50 loc) · 1.85 KB

Uninstalling {project-short} from the command line interface

You can uninstall {project-first} from the command line interface (CLI).

Note

This action does not remove resources managed by the {project-short} Operator, including custom resource definitions (CRDs) and custom resources (CRs). To remove these after uninstalling the {project-short} Operator, you might need to manually delete the {project-short} Operator CRDs.

Prerequisites
  • You must be logged in as a user with cluster-admin privileges.

Procedure
  1. Delete the forklift controller by running the following command:

    $ oc delete ForkliftController --all -n openshift-mtv
  2. Delete the subscription to the {project-short} Operator by running the following command:

    $ oc get subscription -o name|grep 'mtv-operator'| xargs oc delete
  3. Delete the clusterserviceversion for the {project-short} Operator by running the following command:

    $ oc get clusterserviceversion -o name|grep 'mtv-operator'| xargs oc delete
  4. Delete the plugin console CR by running the following command:

    $ oc delete ConsolePlugin forklift-console-plugin
  5. Optional: Delete the custom resource definitions (CRDs) by running the following command:

    {oc} get crd -o name | grep 'forklift.konveyor.io' | xargs {oc} delete
  6. Optional: Perform cleanup by deleting the {project-short} project by running the following command:

    oc delete project openshift-mtv