1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/microshift-data-cleaning-full-cleanup.adoc

82 lines
2.3 KiB
Plaintext

// Module included in the following assemblies:
//
// * microshift_troubleshooting/microshift-cleanup-data.adoc
:_mod-docs-content-type: PROCEDURE
[id="microshift-data-cleaning-full-cleanup_{context}"]
= Cleaning all data and configuration
You can clean up all the {microshift-short} data and configuration by running the `microshift-cleanup-data` script.
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
.Prerequisites
* You are logged into {microshift-short} as an administrator with root-user access.
* You have filed a support case.
.Procedure
. Clean up all the {microshift-short} data and configuration by running the `microshift-cleanup-data` script with the `--all` argument, by entering the following command:
+
[WARNING]
====
This option deletes all {microshift-short} data and user workloads. Use with caution.
====
+
[source,terminal]
----
$ sudo microshift-cleanup-data --all
----
+
[TIP]
====
The script prompts you with a message to confirm the operation. Type 1 or Yes to continue. Any other entries cancel the clean up.
====
+
.Example output when you continue the clean up
[source,terminal]
----
DATA LOSS WARNING: Do you wish to stop and clean ALL MicroShift data AND cri-o container workloads?
1) Yes
2) No
#? 1
Stopping MicroShift services
Disabling MicroShift services
Removing MicroShift pods
Removing crio image storage
Deleting the br-int interface
Killing conmon, pause and OVN processes
Removing MicroShift configuration
Removing OVN configuration
MicroShift service was stopped
MicroShift service was disabled
Cleanup succeeded
----
+
.Example output when you cancel the clean up
[source,terminal]
----
DATA LOSS WARNING: Do you wish to stop and clean ALL MicroShift data AND cri-o container workloads?
1) Yes
2) No
#? no
Aborting cleanup
----
+
[IMPORTANT]
====
The {microshift-short} service is stopped and disabled after you run the script.
====
. Restart the {microshift-short} service by running the following command:
+
[source,terminal]
----
$ sudo systemctl enable --now microshift
----