Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Removing agent from edge cluster

To unregister an edge cluster and remove the Open Horizon agent from that cluster, perform these steps:

  1. Extract the agent-uninstall.sh script from the tar file:

    tar -zxvf agentInstallFiles-x86_64-Cluster.tar.gz agent-uninstall.sh
    
  2. Export your Horizon exchange user credentials:

    export HZN_EXCHANGE_USER_AUTH=iamapikey:<api-key>
    
  3. Remove the agent:

    ./agent-uninstall.sh -u $HZN_EXCHANGE_USER_AUTH -d
    

Note: Occasionally, deleting the namespace stalls in the โ€œTerminatingโ€ state. In this situation, see A namespace is stuck in the Terminating state to manually delete namespace.