// 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.
* You have root access to the {microshift-short} node.

.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*
----
+
