src/Sulu/Component/DocumentManager/Subscriber/Phpcr/RemoveSubscriber.php
public function handleRemove(RemoveEvent $event)
    {
        $document = $event->getDocument();
        $node = $this->documentRegistry->getNodeForDocument($document);

        $node->remove();
    }
public function handleRemove(RemoveEvent $event)
    {
        $document = $event->getDocument();
        $node = $this->documentRegistry->getNodeForDocument($document);

        $node->remove();
    }
public function handleRemove ( RemoveEvent $ event ) { $ document = $ event -> getDocument ( ) ; $ node = $ this -> documentRegistry -> getNodeForDocument ( $ document ) ; $ node -> remove ( ) ; }
Remove the given documents node from PHPCR session and optionally
remove any references to the node.

@param RemoveEvent $event
Remove the given documents node from PHPCR session and optionally remove any references to the node .