public function deleteBulkAction(Widget $widget, $viewReference)
    {
        $view = $this->getViewByReferenceId($viewReference);

        try {
            $widgets = $widget->getWidgetMap()->getWidgets();

            foreach ($widgets as $widget) {
                $this->get('widget_manager')->deleteWidget($widget, $view);
            }

            return new JsonResponse([
                    'success' => true,
                    'message' => $this->get('translator')->trans('victoire_widget.delete.success', [], 'victoire'),
                ]
            );
        } catch (Exception $ex) {
            return $this->getJsonReponseFromException($ex);
        }
    }