Unregisters an agent.

@param agentID - The ID for the agent
546858
public void unregisterShanksAgent(String agentID){
        if (this.agents.containsKey(agentID)) {
            //  this.agents.get(agentID).stop();
            if (stoppables.containsKey(agentID)) {
                this.agents.remove(agentID);
                this.stoppables.remove(agentID).stop();
            } else {
                //No stoppable, stops the agent
                logger.warning("No stoppable found while trying to stop the agent. Attempting direct stop...");
                this.agents.remove(agentID).stop();
            }
        }
    }
723825
private void unregisterTargets( Set<String> newTargetIds ) {

		for( String targetId : newTargetIds ) {
			try {
				this.targetsMngr.deleteTarget( targetId );

			} catch( Exception e ) {
				this.logger.severe( "A target ID that has just been registered could not be created. That's weird." );
				Utils.logException( this.logger, e );
			}
		}
	}
694988
async def _delete_agent(self, agent_addr):
        
        self._available_agents = [agent for agent in self._available_agents if agent != agent_addr]
        del self._registered_agents[agent_addr]
        await self._recover_jobs(agent_addr)
945213
public function destroyAction($actionId)
    {
        if (isset($this->manialinkByAction[$actionId])) {
            unset($this->actionsByManialink[$this->manialinkByAction[$actionId]->getId()][$actionId]);
            unset($this->actions[$actionId]);
        }
    }
1188835
@DeleteMapping(path = "/instances/{id}")
    public Mono<ResponseEntity<Void>> unregister(@PathVariable String id) {
        LOGGER.debug("Unregister instance with ID '{}'", id);
        return registry.deregister(InstanceId.of(id))
                       .map(v -> ResponseEntity.noContent().<Void>build())
                       .defaultIfEmpty(ResponseEntity.notFound().build());
    }
1105791
public void unregister(ICalComponentScribe<? extends ICalComponent> scribe) {
		experimentalCompByName.remove(scribe.getComponentName().toUpperCase());
		experimentalCompByClass.remove(scribe.getComponentClass());
	}
338812
public void remove(Identity oid)
    {
        if (oid == null) return;

        ObjectCache cache = getCache(oid, null, METHOD_REMOVE);
        if (cache != null)
        {
            cache.remove(oid);
        }
    }
986618
public void unregisterProvider(Object provider) {
		if (provider != null) {
			Collection<Object> providerList = new ArrayList<>(1);
			providerList.add(provider);
			unregisterProviders(providerList);
		}
	}
785274
public void remove(Id id) {
        readCache.remove(new CacheKey(id));
        writeCache.remove(id);
    }
337946
function Agent_destroy() {
  this._session.destroyAgent(this.info, agentDestroyed)

  //-----------------------------------
  function agentDestroyed(err, agent) {
    agent._isDestroyed = true
  }
}
656097
function unregister() {
    if (!applicationCurrent) {
        return;
    }
    applicationCurrent.stop();

    EVENTS.forEach(function (event) {
        process.removeListener(event, currentHandlers[event]);
    });

    applicationCurrent = null;
    currentHandlers = {};
}
458518
def unregister(self):
        """"""
        self.names.remove(self.uniquename)
        super(ConfigurableMeta, self).unregister()
168274
def unregister_action(self, name):
        

        name = self.__normalize_name(name)
        action = self.get_action(name)
        if not action:
            return False

        action.triggered.disconnect(self.__actions_signals_slots.pop(action))

        category = foundations.namespace.get_namespace(name)
        name = foundations.namespace.remove_namespace(name)
        self.remove_from_category(category, name)
        return True
517900
void unregisterJob(final ExecutionGraph eg) {

		final Iterator<ExecutionVertex> it = new ExecutionGraphIterator(eg, true);
		while (it.hasNext()) {
			this.splitMap.remove(it.next().getID());
		}
	}
475156
def unregister(self, name):
        
        try:
            name = name.name
        except AttributeError:
            pass
        return self.pop(name,None)
275046
public void unregister(EventObserver<?> observer){
        for (Map.Entry<Class, Set<EventObserver>> entry : observers.entrySet()) {
            entry.getValue().remove(observer);
        }

    }
813748
static void unregister(Object value) {
        if (value != null) {
            Map<Object, Object> m = getRegistry();
            if (m != null) {
                m.remove(value);
                if (m.isEmpty()) {
                    REGISTRY.remove();
                }
            }
        }
    }