Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _topic_maps/_topic_map_ms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ Distros: microshift
Topics:
- Name: Installing with an RPM package
File: microshift-install-rpm
- Name: Uninstalling MicroShift
File: microshift-uninstall-rpm
---
Name: Installing optional RPM packages
Dir: microshift_install_rpm_opt
Expand Down
1 change: 1 addition & 0 deletions microshift_install_rpm/microshift-install-rpm.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ include::modules/microshift-accessing.adoc[leveloffset=+1]
//additional resources for accessing module
[role="_additional-resources"]
.Additional resources

* xref:../microshift_cli_ref/microshift-oc-cli-install.adoc#microshift-oc-cli-install[Installing the OpenShift CLI tool].

include::modules/microshift-accessing-cluster-locally.adoc[leveloffset=+2]
Expand Down
11 changes: 11 additions & 0 deletions microshift_install_rpm/microshift-uninstall-rpm.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
:_mod-docs-content-type: ASSEMBLY
[id="microshift-uninstall-rpm"]
include::_attributes/attributes-microshift.adoc[]
= Uninstalling {microshift-short}
:context: microshift-uninstall-rpm

toc::[]

Before you uninstall {microshift-short}, clean up all the {microshift-short} data and configuration by running the `microshift-cleanup-data` script.

include::modules/microshift-uninstall-microshift-rpms.adoc[leveloffset=+1]
38 changes: 38 additions & 0 deletions modules/microshift-uninstall-microshift-rpms.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// Module included in the following assemblies:
//
// microshift_install_rpm/microshift-uninstall.adoc

:_mod-docs-content-type: PROCEDURE
[id="microshift-uninstall-microshift-rpms_{context}"]
= Uninstalling {microshift-short} from an RPM package

.Prerequisites

* You are logged into {microshift-short} as an administrator with root-user access.
* You have filed a support case.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed a support case? Why?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I learned that the team had made an agreement with Support that a case would need to be filed when a customer planned to delete data.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, let's keep it - thank you for explaining.

* You have root access to the {microshift-short} cluster.

.Procedure

. Clean all your data by running the following command:
+
[source,terminal,subs="+quotes"]
----
$ sudo microshift-cleanup-data --all <1>
----
<1> When you run the script with the `--all` argument, you perform the following clean up actions:

* Stop and disable all {microshift-short} services
* Delete all {microshift-short} pods
* Delete all container image storage
* Reset network configuration
* Delete the `/var/lib/microshift` data directory
* Delete OVN-K networking configuration
+
. Run the following command:
+
[source,terminal,subs="+quotes"]
----
$ sudo dnf remove -y microshift*
----
+