Skip to content

Commit

Permalink
Merge pull request #555 from RichardHoch/uninstall_cli
Browse files Browse the repository at this point in the history
Uninstalling MTV from the CLI
  • Loading branch information
anarnold97 authored Oct 8, 2024
2 parents 0c1963d + df7c689 commit a031ca7
Showing 1 changed file with 33 additions and 7 deletions.
40 changes: 33 additions & 7 deletions documentation/modules/uninstalling-mtv-cli.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,57 @@
[id="uninstalling-mtv-cli_{context}"]
= Uninstalling {project-short} from the command line interface

You can uninstall {project-first} from the command line interface (CLI) by deleting the +{namespace}+ project and the `forklift.konveyor.io` custom resource definitions (CRDs).
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

. Delete the project:
. Delete the `forklift` controller by running the following command:
+
[source,terminal,subs="attributes+"]
----
$ oc delete ForkliftController --all -n openshift-mtv
----

. Delete the subscription to the {project-short} Operator by running the following command:
+
[source,terminal,subs="attributes+"]
----
$ oc get subscription -o name|grep 'mtv-operator'| xargs oc delete
----

. Delete the `clusterserviceversion` for the {project-short} Operator by running the following command:
+
[source,terminal,subs="attributes+"]
----
$ oc get clusterserviceversion -o name|grep 'mtv-operator'| xargs oc delete
----

. Delete the plugin console CR by running the following command:
+
[source,terminal,subs="attributes+"]
----
$ {oc} delete project {namespace}
$ oc delete ConsolePlugin forklift-console-plugin
----

. Delete the CRDs:
. Optional: Delete the custom resource definitions (CRDs) by running the following command:
+
[source,terminal,subs="attributes+"]
----
$ {oc} get crd -o name | grep 'forklift' | xargs {oc} delete
{oc} get crd -o name | grep 'forklift.konveyor.io' | xargs {oc} delete
----

. Delete the OAuthClient:
. Optional: Perform cleanup by deleting the {project-short} project by running the following command:
+
[source,terminal,subs="attributes+"]
----
$ {oc} delete oauthclient/forklift-ui
oc delete project openshift-mtv
----

0 comments on commit a031ca7

Please sign in to comment.