Skip to content

Commit 4e161c0

Browse files
authored
Merge pull request #97625 from tedaveryredhat/OSDOCS-7857
OSDOCS-7857:RPM Uninstall Instructions
2 parents e06aed2 + 67b9c48 commit 4e161c0

File tree

4 files changed

+52
-0
lines changed

4 files changed

+52
-0
lines changed

_topic_maps/_topic_map_ms.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ Distros: microshift
5555
Topics:
5656
- Name: Installing with an RPM package
5757
File: microshift-install-rpm
58+
- Name: Uninstalling MicroShift
59+
File: microshift-uninstall-rpm
5860
---
5961
Name: Installing optional RPM packages
6062
Dir: microshift_install_rpm_opt

microshift_install_rpm/microshift-install-rpm.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ include::modules/microshift-accessing.adoc[leveloffset=+1]
4242
//additional resources for accessing module
4343
[role="_additional-resources"]
4444
.Additional resources
45+
4546
* xref:../microshift_cli_ref/microshift-oc-cli-install.adoc#microshift-oc-cli-install[Installing the OpenShift CLI tool].
4647

4748
include::modules/microshift-accessing-cluster-locally.adoc[leveloffset=+2]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
[id="microshift-uninstall-rpm"]
3+
include::_attributes/attributes-microshift.adoc[]
4+
= Uninstalling {microshift-short}
5+
:context: microshift-uninstall-rpm
6+
7+
toc::[]
8+
9+
Before you uninstall {microshift-short}, clean up all the {microshift-short} data and configuration by running the `microshift-cleanup-data` script.
10+
11+
include::modules/microshift-uninstall-microshift-rpms.adoc[leveloffset=+1]
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Module included in the following assemblies:
2+
//
3+
// microshift_install_rpm/microshift-uninstall.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="microshift-uninstall-microshift-rpms_{context}"]
7+
= Uninstalling {microshift-short} from an RPM package
8+
9+
.Prerequisites
10+
11+
* You are logged into {microshift-short} as an administrator with root-user access.
12+
* You have filed a support case.
13+
* You have root access to the {microshift-short} cluster.
14+
15+
.Procedure
16+
17+
. Clean all your data by running the following command:
18+
+
19+
[source,terminal,subs="+quotes"]
20+
----
21+
$ sudo microshift-cleanup-data --all <1>
22+
----
23+
<1> When you run the script with the `--all` argument, you perform the following clean up actions:
24+
25+
* Stop and disable all {microshift-short} services
26+
* Delete all {microshift-short} pods
27+
* Delete all container image storage
28+
* Reset network configuration
29+
* Delete the `/var/lib/microshift` data directory
30+
* Delete OVN-K networking configuration
31+
+
32+
. Run the following command:
33+
+
34+
[source,terminal,subs="+quotes"]
35+
----
36+
$ sudo dnf remove -y microshift*
37+
----
38+
+

0 commit comments

Comments
 (0)