Uninstall MicroShift from an RPM package

When you want to uninstall MicroShift, you must first clean up all data, pods, and configurations before removing the RPM packages.

Prerequisites
  • You are logged into MicroShift as an administrator with root-user access.

  • You have filed a support case.

  • You have root access to the MicroShift node.

Procedure
  1. Clean all your data by running the following command:

    $ sudo microshift-cleanup-data --all

    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/microshift data directory

    • Delete OVN-K networking configuration

  2. Run the following command:

    $ sudo dnf remove -y microshift*