src/Sulu/Bundle/PageBundle/Document/Subscriber/PublishSubscriber.php
public function removeNodeFromPublicWorkspace(RemoveEvent $event)
    {
        $document = $event->getDocument();
        $metadata = $this->metadataFactory->getMetadataForClass(get_class($document));
        if (!$metadata->getSyncRemoveLive()) {
            return;
        }

        $this->getLiveNode($document)->remove();
    }
public function removeNodeFromPublicWorkspace(RemoveEvent $event)
    {
        $document = $event->getDocument();
        $metadata = $this->metadataFactory->getMetadataForClass(get_class($document));
        if (!$metadata->getSyncRemoveLive()) {
            return;
        }

        $this->getLiveNode($document)->remove();
    }
public function removeNodeFromPublicWorkspace ( RemoveEvent $ event ) { $ document = $ event -> getDocument ( ) ; $ metadata = $ this -> metadataFactory -> getMetadataForClass ( get_class ( $ document ) ) ; if ( ! $ metadata -> getSyncRemoveLive ( ) ) { return ; } $ this -> getLiveNode ( $ document ) -> remove ( ) ; }
Since deleting is not draftable the node will be deleted in the live session as soon as it is deleted in the
default session.

@param RemoveEvent $event
Since deleting is not draftable the node will be deleted in the live session as soon as it is deleted in the default session .