I have my own module installed via composer and I can uninstall it with
php bin/magento module:uninstall XXX_XXX
But when I reinstall the module the configuration (values in system.xml) is still the same as it was setup while it was installed before. Do I have to remove the configurations manually? How?
EDIT: My current Uninstall class:
<?php
namespace XXXX\XXXXX\Setup;
use Magento\Framework\Setup\UninstallInterface;
use Magento\Framework\Setup\SchemaSetupInterface;
use Magento\Framework\Setup\ModuleContextInterface;
class Uninstall implements UninstallInterface
{
public function uninstall(SchemaSetupInterface $setup, ModuleContextInterface $context) {
$setup->startSetup();
$connection = $setup->getConnection();
$connection->dropTable($connection->getTableName('mytable_data'));
$setup->endSetup();
}
}