code: func (ar *AgentReconciler) Purge(a *Agent) {
  	for {
  		cAgentState, err := a.units()
  		if err != nil {
  			log.Errorf("Unable to determine agent's current state: %v", err)
  			return
  		}
  		if len(cAgentState) == 0 {
  			return
  		}
  
  		var tasks []task
  		for name, _ := range cAgentState {
  			tasks = append(tasks, task{
  				typ:    taskTypeUnloadUnit,
  				reason: taskReasonPurgingAgent,
  				unit: &job.Unit{
  					Name: name,
  				},
  			})
  		}
  
  		ar.launchTasks(tasks, a)
  		time.Sleep(time.Second)
  	}
  }
docs: // Purge attempts to unload all Units that have been loaded locally