/** * uninstall shop from application * @param UninstallEvent $event * @return bool */ public function onUninstall(UninstallEvent $event) { $shop = $this->getShopByEvent($event); if (!$shop) { return false; } // simply delete entity by manager $this->objectManager->delete($shop); }