public function deleteAction($id)
    {
        $redirectRoute = $this->getRedirectRouteRepository()->find($id);
        if (!$redirectRoute) {
            throw new EntityNotFoundException($this->getParameter('sulu.model.redirect_route.class'), $id);
        }

        $this->getRedirectRouteManager()->delete($redirectRoute);
        $this->get('doctrine.orm.entity_manager')->flush();

        return $this->handleView($this->view());
    }