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