@RequestMapping(value = "/{name}", method = RequestMethod.DELETE)
	@ResponseStatus(HttpStatus.OK)
	protected void delete(@PathVariable("name") String name) {
		if (!repository.exists(name)) {
			throw new NoSuchMetricException(name, "Can't delete metric '%s' because it does not exist");
		}
		repository.delete(name);
	}
Deletes the metric from the repository

@param name the name of the metric to delete
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/rest/metrics/AbstractMetricsController.java