Model
ThemeUninstaller
Magento\Theme\Model\Theme\ThemeUninstaller
What it does
This class handles the uninstallation of themes in Magento 2.
Developers use it when removing themes through CLI commands, as it removes theme records from the database registry and deletes theme code from the codebase using Composer.
It's typically invoked during the theme:uninstall command execution.
Public Methods
- uninstallRegistry()
- uninstallCode()