original_string: public function deleteComponentGroupAction(ComponentGroup $group)
      {
          execute(new RemoveComponentGroupCommand($group));
  
          return cachet_redirect('dashboard.components.groups')
              ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.components.delete.success')));
      }
code: public function deleteComponentGroupAction(ComponentGroup $group)
      {
          execute(new RemoveComponentGroupCommand($group));
  
          return cachet_redirect('dashboard.components.groups')
              ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.components.delete.success')));
      }
code_tokens: public function deleteComponentGroupAction ( ComponentGroup $ group ) { execute ( new RemoveComponentGroupCommand ( $ group ) ) ; return cachet_redirect ( 'dashboard.components.groups' ) -> withSuccess ( sprintf ( '%s %s' , trans ( 'dashboard.notifications.awesome' ) , trans ( 'dashboard.components.delete.success' ) ) ) ; }
docstring: Deletes a given component group.
  
  @param \CachetHQ\Cachet\Models\ComponentGroup $group
  
  @return \Illuminate\Http\RedirectResponse
docstring_tokens: Deletes a given component group .