Removing the agent from an edge cluster
To unregister an edge cluster and remove the Open Horizon agent from that cluster, perform these steps:
-
Extract the agent-uninstall.sh script from the tar file:
tar -zxvf agentInstallFiles-x86_64-Cluster.tar.gz agent-uninstall.sh
-
Export your Horizon exchange user credentials:
export HZN_ORG_ID=<your-exchange-organization> export HZN_EXCHANGE_USER_AUTH=<authentication string> export HZN_EXCHANGE_URL= # example http://open-horizon.lfedge.iol.unh.edu:3090/v1 export HZN_FSS_CSSURL= # example http://open-horizon.lfedge.iol.unh.edu:9443/ export HZN_AGBOT_URL= # example http://open-horizon.lfedge.iol.unh.edu:3111 export HZN_FDO_SVC_URL= # example http://open-horizon.lfedge.iol.unh.edu:9008/api
-
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.