One can disable the Magento Extension from config.php file you will get this file at app/etc/config.php Go to this file and open it, you will get to see something like this:


Choose your extension and put 1 to 0 like this

'Excellence_Base' => 1,

'Excellence_Base' => 0,

After doing this step you will get this error when you will open your website: Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory. So in that case just run upgrade command that is sudo php bin/magento setup:upgrade And your Magento Extension will be uninstalled.