Clean all data and configuration
You can clean up all the MicroShift 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 services
-
Delete all MicroShift pods
-
Delete all container image storage
-
Reset network configuration
-
Delete the
/var/lib/microshiftdata directory -
Delete OVN-K networking configuration
-
You are logged into MicroShift.
-
You have filed a support case.
-
Clean up all the MicroShift data and configuration by running the
microshift-cleanup-datascript with the--allargument, by entering the following command:This option deletes all MicroShift data and user workloads. Use with caution.
$ sudo microshift-cleanup-data --allThe script prompts you to confirm the operation. Enter
1orYesto continue. Any other entry cancels the cleanup.Example output when you continue the cleanupDATA 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 succeededExample output when you cancel the cleanupDATA LOSS WARNING: Do you wish to stop and clean ALL MicroShift data AND cri-o container workloads? 1) Yes 2) No #? no Aborting cleanupThe
microshift-cleanup-datascript stops and disables the MicroShift service. -
Restart the MicroShift service by running the following command:
$ sudo systemctl enable --now microshift