code: func (a *Agent) unloadProxies() error {
  	for id := range a.State.Proxies() {
  		if err := a.removeProxyLocked(id, false); err != nil {
  			return fmt.Errorf("Failed deregistering proxy '%s': %s", id, err)
  		}
  	}
  	return nil
  }
docs: // unloadProxies will deregister all proxies known to the local agent.