====== Salt Project ====== https://docs.saltproject.io ===== Remove entry from mine ===== * https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.mine.html * https://docs.saltproject.io/en/latest/ref/runners/all/salt.runners.mine.html * https://github.com/saltstack/salt/issues/11389#issuecomment-192000830 Should a node be removed at least its prometheus/monitoring entry in the mine should be removed. Given a node ''pi-k8s-01'' run the following command to remove all mine entries. salt-run mine.update 'pi-k8s-01' clear=True The previous command only works while the minion is still connected to the master. If the minion is already removed you can execute this command. salt-run cache.clear_all pi-k8s-01