Removing a Node

There may come a time when you need to remove a node from your distributed deployment. To do this, you’ll need to remove the node’s configuration from a few different components.

Salt

First, log into your manager and list all Salt keys:

sudo salt-key

Then remove the node by deleting its key from Salt (replacing nodename with the actual node name):

sudo salt-key -d nodename

Remove the node from any .sls files in /opt/so/saltstack/local/pillar/data/.

Grafana

If necessary, remove the node’s json file from the appropriate subdirectory under /opt/so/conf/grafana/grafana_dashboards/ on the manager and then restart Grafana with:

sudo so-grafana-restart

You may also want to purge old Grafana data using so-influxdb-clean as described in the Grafana section.

SOC

To remove the node from the SOC Grid page, simply restart SOC:

sudo so-soc-restart

FleetDM

You can delete the node from FleetDM via the FleetDM web interface.