Removes the metric with the given name.

@param name the metric node
@return whether or not the metric was removed
199489
public boolean remove(String name) {
        final AsmMetric metric = metrics.remove(name);
        if (metric != null) {
            LOG.info("Successfully unregister metric of {}", name);
            return true;
        }
        return false;
    }
750055
public void removeAttribute(String name) {
		if(logger.isDebugEnabled()) {
        	logger.debug("removeAttribute - name=" + name);
        }
		if(attributes  != null) {
			this.attributes.remove(name);
		}
	}
1054437
public boolean deleteIndex(String name) throws IOException {
        CloseableHttpClient client = HttpClients.createDefault();
        HttpDelete delete = new HttpDelete(String.format("http://%s:%d/%s", host, port, name));
        try {
            CloseableHttpResponse resp = client.execute(delete);
            return resp.getStatusLine().getStatusCode() == HttpStatus.SC_OK;
        } finally {
            delete.releaseConnection();
        }
    }
485941
public boolean removeBusHub(String name) {
		Iterator<BusHub> iterator;
		BusHub busHub;

		iterator = this.validBusHubs.iterator();
		while (iterator.hasNext()) {
			busHub = iterator.next();
			if (name.equals(busHub.getName())) {
				iterator.remove();
				busHub.setContainer(null);
				busHub.setEventFirable(true);
				firePrimitiveChanged(new BusChangeEvent(this,
						BusChangeEventType.HUB_REMOVED,
						busHub,
						-1,
						null,
						null,
						null));
				checkPrimitiveValidity();
				return true;
			}
		}

		iterator = this.invalidBusHubs.iterator();
		while (iterator.hasNext()) {
			busHub = iterator.next();
			if (name.equals(busHub.getName())) {
				iterator.remove();
				busHub.setContainer(null);
				firePrimitiveChanged(new BusChangeEvent(this,
						BusChangeEventType.HUB_REMOVED,
						busHub,
						-1,
						null,
						null,
						null));
				checkPrimitiveValidity();
				return true;
			}
		}

		return false;
	}
732350
public void unlink(Name name) {
    DirectoryEntry entry = remove(checkNotReserved(name, "unlink"));
    entry.file().unlinked();
  }
876464
public boolean deleteMetricAsync(String metricName)
      throws ExecutionException, InterruptedException {
    // [START deleteMetricAsync]
    Future<Boolean> future = logging.deleteMetricAsync(metricName);
    // ...
    boolean deleted = future.get();
    if (deleted) {
      // the metric was deleted
    } else {
      // the metric was not found
    }
    // [END deleteMetricAsync]
    return deleted;
  }
417758
public String remove(String name)
    {
        String old=null;
        FieldInfo info=getFieldInfo(name);
        Field field=getField(info,true);

        if (field!=null)
        {
            old=field._value;
            while(field!=null)
            {
                field.clear();
                field=field._next;
            }
        }
        
        return old;
    }
1133477
public void remove(String name) {
        EndpointService<L, S> service = endpointServices.remove(name);
        if (service != null) {
            service.stop();
            log.infoRemovedEndpointService(service.toString());
        }
    }
1020089
protected static void checkMetricLabelName(String name) {
    if (!METRIC_LABEL_NAME_RE.matcher(name).matches()) {
      throw new IllegalArgumentException("Invalid metric label name: " + name);
    }
    if (RESERVED_METRIC_LABEL_NAME_RE.matcher(name).matches()) {
      throw new IllegalArgumentException("Invalid metric label name, reserved for internal use: " + name);
    }
  }
488965
def delete_metric(name):
    """"""

    with LOCK:
        old_metric = REGISTRY.pop(name, None)

        # look for the metric name in the tags and remove it
        for _, tags in py3comp.iteritems(TAGS):
            if name in tags:
                tags.remove(name)

    return old_metric
237978
public HttpField remove(String name) {
        HttpField removed = null;
        for (int i = _size; i-- > 0; ) {
            HttpField f = _fields[i];
            if (f.getName().equalsIgnoreCase(name)) {
                removed = f;
                System.arraycopy(_fields, i + 1, _fields, i, --_size - i);
            }
        }
        return removed;
    }
1091291
@Override
    public void removeAttribute(String name) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(tc, "Removing attribute: " + name);
        }
        this.attributes.remove(name);
    }
477402
public Object remove(String name) {
		ThreadScopeContext context = ThreadScopeContextHolder.getContext();
		return context.remove(name);
	}
829033
public void delete(String name) throws IOException {
        if (name.equalsIgnoreCase(ALGORITHM)) {
            algId = null;
        } else {
            throw new IOException("Attribute name not recognized by " +
                               "CertAttrSet:CertificateAlgorithmId.");
        }
    }
1322120
public Variable remove(String name) {
        if (context.containsKey(name)) {
            return context.remove(name);
        } else {
            return null;
        }
    }
668123
private void unregisterMBeanInService(String name) {
        ServiceRegistration<DynamicMBean> existingMBean = endpointMBeans.remove(name);
        if (existingMBean != null) {
            existingMBean.unregister();
        }
    }
405063
public function removeMetric($name) {
        if (isset($this->metrics[$name])) {
            unset($this->metrics[$name]);

            return $this;
        }

        throw new MetricNotFoundException("Metric $name not found");
    }