code: public final void deleteMetricDescriptor(String name) {
  
      DeleteMetricDescriptorRequest request =
          DeleteMetricDescriptorRequest.newBuilder().setName(name).build();
      deleteMetricDescriptor(request);
    }
docs: Deletes a metric descriptor. Only user-created [custom metrics](/monitoring/custom-metrics) can
  be deleted.
  
  <p>Sample code:
  
  <pre><code>
  try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
  MetricDescriptorName name = MetricDescriptorName.of("[PROJECT]", "[METRIC_DESCRIPTOR]");
  metricServiceClient.deleteMetricDescriptor(name.toString());
  }
  </code></pre>
  
  @param name The metric descriptor on which to execute the request. The format is
  `"projects/{project_id_or_number}/metricDescriptors/{metric_id}"`. An example of
  `{metric_id}` is: `"custom.googleapis.com/my_test_metric"`.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails