code: public function deleteAction(Request $request, $documentId)
      {
          $repository = $this->getRequestRepository($request);
  
          try {
              $this->getCrudService()->delete($repository, $documentId);
              $response = $this->getCrudService()->commit($repository);
          } catch (\RuntimeException $e) {
              return $this->renderError($request, $e->getMessage(), Response::HTTP_BAD_REQUEST); // Missing _id
          } catch (NoDocumentsToGetException $e) {
              return $this->renderError($request, $e->getMessage(), Response::HTTP_NOT_FOUND);
          } catch (\Exception $e) {
              return $this->renderError($request, $e->getMessage(), Response::HTTP_BAD_REQUEST);
          }
  
          return $this->renderRest($request, $response, Response::HTTP_NO_CONTENT);
      }
docs: {@inheritdoc}