QuestionQ27

VerifiedTroubleshoot to identify the root cause of issues with Adobe Commerce

A developer must uninstall two custom modules, including their database data and schemas. The developer runs this command:

bin/magento module:uninstall Vendor_SampleMinimal Vendor_SampleModifyContent

When the command is executed from the CLI, the developer is unable to remove the database schema and data defined in the module Uninstall class.

Which three requirements should the Architect recommend checking to troubleshoot this issue?

Choose three
Explanation

Adobe Commerce removes module-defined database schema and data only when module:uninstall includes --remove-data. For each module, it invokes the uninstall() method in that module’s Uninstall class, which must implement Magento\Framework\Setup\UninstallInterface. The command is intended for Composer-installed modules, so the module must be defined as a Composer package in composer.json.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!