Removing GitOps


Red Hat OpenShift GitOps 1.20

Removing OpenShift GitOps Operator from your cluster

Red Hat OpenShift Documentation Team

Abstract

This document provides instructions for deleting the Argo CD instances added to the default namespace of the OpenShift GitOps Operator. It also discusses how to remove the OpenShift GitOps Operator from your cluster.

Chapter 1. Uninstalling Red Hat OpenShift GitOps

Uninstalling the Red Hat OpenShift GitOps Operator is a two-step process:

  1. Delete the Argo CD instances from the openshift-gitops namespace and any other namespaces where they were created.
  2. Uninstall the Red Hat OpenShift GitOps Operator.

Uninstalling only the Operator will not remove the Argo CD instances created.

1.1. Deleting the Argo CD instances

Delete the Argo CD instances added to the namespace of the GitOps Operator.

Procedure

  1. In the terminal, run the following command:

    $ oc delete gitopsservice cluster -n openshift-gitops
    Note

    You cannot delete an Argo CD instance from the web console UI.

    After the command runs successfully, the Argo CD instances will be deleted from the openshift-gitops namespace.

  2. Delete any other Argo CD instances from other namespaces using the same command:

    $ oc delete gitopsservice cluster -n <namespace>

1.2. Uninstalling the GitOps Operator

You can uninstall the Red Hat OpenShift GitOps Operator from the OperatorHub by using the web console.

Procedure

  1. From the OperatorsOperatorHub page, use the Filter by keyword box to search for Red Hat OpenShift GitOps tile.
  2. Click the Red Hat OpenShift GitOps tile. The Operator tile indicates it is installed.
  3. In the Red Hat OpenShift GitOps descriptor page, click Uninstall.

Legal Notice

Copyright © Red Hat.
Except as otherwise noted below, the text of and illustrations in this documentation are licensed by Red Hat under the Creative Commons Attribution–Share Alike 3.0 Unported license . If you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, the Red Hat logo, JBoss, Hibernate, and RHCE are trademarks or registered trademarks of Red Hat, LLC. or its subsidiaries in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
XFS is a trademark or registered trademark of Hewlett Packard Enterprise Development LP or its subsidiaries in the United States and other countries.
The OpenStack® Word Mark and OpenStack logo are trademarks or registered trademarks of the Linux Foundation, used under license.
All other trademarks are the property of their respective owners.
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

© 2026 Red Hat
Back to top