original_string: public function deleteMetricAction(Metric $metric)
      {
          execute(new RemoveMetricCommand($metric));
  
          return cachet_redirect('dashboard.metrics')
              ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.metrics.delete.success')));
      }
code: public function deleteMetricAction(Metric $metric)
      {
          execute(new RemoveMetricCommand($metric));
  
          return cachet_redirect('dashboard.metrics')
              ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.metrics.delete.success')));
      }
code_tokens: public function deleteMetricAction ( Metric $ metric ) { execute ( new RemoveMetricCommand ( $ metric ) ) ; return cachet_redirect ( 'dashboard.metrics' ) -> withSuccess ( sprintf ( '%s %s' , trans ( 'dashboard.notifications.awesome' ) , trans ( 'dashboard.metrics.delete.success' ) ) ) ; }
docstring: Deletes a given metric.
  
  @param \CachetHQ\Cachet\Models\Metric $metric
  
  @return \Illuminate\Http\RedirectResponse
docstring_tokens: Deletes a given metric .