Adds a console command to show all modules which can be safely disabled as they have no declared dependencies
Adds a shell command info:dependencies:show-removable
which exports all modules which have no dependencies, (*1)
avstudnitz/disable-modules
(registered at Packagist)Call the new command as follows:, (*2)
$ bin/magento info:dependencies:show-removable
You'll get an output as follows:, (*3)
Report successfully processed. File "modules-removable.csv" generated.
The file "modules-removable.csv" will contain a list of modules:, (*4)
"Modules without dependencies:" " =========================== " Magento_Weee Magento_WebapiSecurity Magento_Version Magento_Usps Magento_Ups Magento_TaxImportExport Magento_SwatchesLayeredNavigation Magento_Swagger Magento_Sitemap Magento_SendFriend Magento_SalesInventory Magento_ProductVideo Magento_Persistent Magento_OfflinePayments Magento_NewRelicReporting Magento_Multishipping Magento_LayeredNavigation Magento_GroupedImportExport Magento_GoogleOptimizer Magento_GoogleAdwords Magento_Fedex Magento_EncryptionKey Magento_DownloadableImportExport Magento_Dhl Magento_Deploy Magento_CustomerImportExport Magento_CurrencySymbol Magento_ConfigurableImportExport Magento_CheckoutAgreements Magento_CatalogWidget Magento_CatalogRuleConfigurable Magento_Captcha Magento_CacheInvalidate Magento_BundleImportExport Magento_Braintree Magento_Authorizenet Magento_AdvancedPricingImportExport Magento_AdminNotification Magento_Marketplace Magento_BundleSampleData Magento_SalesRuleSampleData Magento_SalesSampleData Magento_CustomerSampleData Magento_CmsSampleData Magento_TaxSampleData Magento_GroupedProductSampleData Magento_DownloadableSampleData Magento_WidgetSampleData Magento_MsrpSampleData Magento_WishlistSampleData Magento_ReviewSampleData Magento_SwatchesSampleData Magento_OfflineShippingSampleData AvS_DisableModules
No other modules have any dependencies declared to any of those modules, so they can be removed safely (in theory).
To remove them, add bin/magento module:disable
in front of the module name you want to remove, i.e.:, (*5)
bin/magento module:disable Magento_Marketplace
app/code/AvS/DisableModules/
in the Magento 2 root.bin/magento module:enable AvS_DisableModules
.bin/magento setup:upgrade
.bin/magento module:uninstall AvS_DisableModules
.app/code/AvS/DisableModules/
or use Composer to remove the extension if you have installed it with ComposerIf you have any issues with this extension, open an issue on GitHub., (*6)
Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub., (*7)
Andreas von Studnitz, integer_net, (*8)
http://www.integer-net.com, (*9)
@avstudnitz, (*10)
OSL - Open Software Licence 3.0, (*11)
(c) 2017 Andreas von Studnitz / integer_net GmbH, (*12)