public function onDeindex(DeindexEvent $event)
    {
        try {
            $this->searchManager->deindex($event->getSubject());
        } catch (MetadataNotFoundException $ex) {
            // no metadata found => do nothing
        }
    }
public function onDeindex(DeindexEvent $event)
    {
        try {
            $this->searchManager->deindex($event->getSubject());
        } catch (MetadataNotFoundException $ex) {
            // no metadata found => do nothing
        }
    }
public function onDeindex ( DeindexEvent $ event ) { try { $ this -> searchManager -> deindex ( $ event -> getSubject ( ) ) ; } catch ( MetadataNotFoundException $ ex ) { // no metadata found => do nothing } }
Deindex subject from event.

@param DeindexEvent $event
Deindex subject from event .