Chapter 4. Uninstalling MicroShift


Before you uninstall MicroShift, clean up all the MicroShift data and configuration by running the microshift-cleanup-data script.

4.1. Uninstalling MicroShift from an RPM package

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 
    1
    Copy to Clipboard Toggle word wrap
    1
    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*
    Copy to Clipboard Toggle word wrap
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat