Controller/ArticlePageController.php
public function deleteAction($articleUuid, $uuid, Request $request)
    {
        $locale = $this->getRequestParameter($request, 'locale', true);

        $documentManager = $this->getDocumentManager();
        $document = $documentManager->find($uuid, $locale);
        $documentManager->remove($document);
        $documentManager->flush();

        return $this->handleView($this->view(null));
    }
public function deleteAction($articleUuid, $uuid, Request $request)
    {
        $locale = $this->getRequestParameter($request, 'locale', true);

        $documentManager = $this->getDocumentManager();
        $document = $documentManager->find($uuid, $locale);
        $documentManager->remove($document);
        $documentManager->flush();

        return $this->handleView($this->view(null));
    }
public function deleteAction ( $ articleUuid , $ uuid , Request $ request ) { $ locale = $ this -> getRequestParameter ( $ request , 'locale' , true ) ; $ documentManager = $ this -> getDocumentManager ( ) ; $ document = $ documentManager -> find ( $ uuid , $ locale ) ; $ documentManager -> remove ( $ document ) ; $ documentManager -> flush ( ) ; return $ this -> handleView ( $ this -> view ( null ) ) ; }
Delete article-page.

@param string $articleUuid
@param string $uuid
@param Request $request

@return Response
Delete article - page .