uninstallTables($setup); $this->uninstallConfigData($setup); } private function uninstallTables(SchemaSetupInterface $setup): void { $tablesToDrop = [ self::HIDE_PRICE_REQUEST_TABLE ]; foreach ($tablesToDrop as $table) { $setup->getConnection()->dropTable( $setup->getTable($table) ); } } private function uninstallConfigData(SchemaSetupInterface $setup): void { $configTable = $setup->getTable('core_config_data'); $setup->getConnection()->delete($configTable, "`path` LIKE 'amasty_hide_price%'"); } }