public final void deleteLogMetric(String metricName) {

    DeleteLogMetricRequest request =
        DeleteLogMetricRequest.newBuilder().setMetricName(metricName).build();
    deleteLogMetric(request);
  }
public final void deleteLogMetric ( String metricName ) { DeleteLogMetricRequest request = DeleteLogMetricRequest . newBuilder ( ) . setMetricName ( metricName ) . build ( ) ; deleteLogMetric ( request ) ; }
Deletes a logs-based metric.

<p>Sample code:

<pre><code>
try (MetricsClient metricsClient = MetricsClient.create()) {
MetricName metricName = ProjectMetricName.of("[PROJECT]", "[METRIC]");
metricsClient.deleteLogMetric(metricName.toString());
}
</code></pre>

@param metricName The resource name of the metric to delete:
<p>"projects/[PROJECT_ID]/metrics/[METRIC_ID]"
@throws com.google.api.gax.rpc.ApiException if the remote call fails