original_string: public function deleteTemplateAction(IncidentTemplate $template)
      {
          $template->delete();
  
          return cachet_redirect('dashboard.templates')
              ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.incidents.templates.delete.success')));
      }
code: public function deleteTemplateAction(IncidentTemplate $template)
      {
          $template->delete();
  
          return cachet_redirect('dashboard.templates')
              ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.incidents.templates.delete.success')));
      }
code_tokens: public function deleteTemplateAction ( IncidentTemplate $ template ) { $ template -> delete ( ) ; return cachet_redirect ( 'dashboard.templates' ) -> withSuccess ( sprintf ( '%s %s' , trans ( 'dashboard.notifications.awesome' ) , trans ( 'dashboard.incidents.templates.delete.success' ) ) ) ; }
docstring: Deletes an incident template.
  
  @param \CachetHQ\Cachet\Models\IncidentTemplate $template
  
  @return \Illuminate\Http\RedirectResponse
docstring_tokens: Deletes an incident template .