public static void clearRepositoryAdapter(String host, int port) {

		if (port == 0) {
			port = GhidraServerHandle.DEFAULT_PORT;
		}

		ServerInfo server = new ServerInfo(host, port);
		RepositoryServerAdapter serverAdapter = serverHandles.remove(server);
		if (serverAdapter != null) {
			serverAdapter.disconnect();
		}
	}
Eliminate the specified repository server from the connection cache
@param host host name or IP address
@param port port (0: use default port)
Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/client/ClientUtil.java