QuestionQ24

VerifiedStore Operations and Admin

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 runs from the CLI, the developer cannot 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 the database schema and data defined by a module’s Uninstall class only when --remove-data is supplied. module:uninstall operates on Composer-installed module packages, and it invokes the uninstall() method in each module’s Uninstall class. The command itself places the store in maintenance mode; a separate schema-removal flag and separate uninstallData() or uninstallSchema() methods are not required.

Learn more

Community Discussion

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