Controller/FormController.php
public function deleteAction(Request $request, $id)
    {
        $locale = $this->getLocale($request);

        $entity = $this->getManager()->delete($id, $locale);

        if (!$entity) {
            throw $this->createNotFoundException(sprintf('No form with id "%s" was found!', $id));
        }

        return new Response('', 204);
    }
public function deleteAction(Request $request, $id)
    {
        $locale = $this->getLocale($request);

        $entity = $this->getManager()->delete($id, $locale);

        if (!$entity) {
            throw $this->createNotFoundException(sprintf('No form with id "%s" was found!', $id));
        }

        return new Response('', 204);
    }
@param Request $request
@param $id

@return Response