public function deleteAction($id)
    {
        $filterManager = $this->get('phlexible_message.filter_manager');
        $filter = $filterManager->find($id);
        $filterManager->deleteFilter($filter);

        return new ResultResponse(true, 'Filter "'.$filter->getTitle().'" deleted.');
    }