Uninstalling a module in Drupal deletes more than the module itself. Uninstall Impact lists, for your site, exactly what would go before you uninstall. This page explains what Drupal deletes and why, with real examples.
Will Uninstall Impact change my site? No. It only reads. It never uninstalls, deletes or edits anything. It asks core the same questions core asks during an uninstall, as a dry run.
When a module provides a kind of configuration (contexts, webforms, image styles, workflows…), every item you create is stored under the module's name. With the Context module, every context is stored as context.context.<id>.
On uninstall, Drupal deletes every configuration item whose name starts with the module's name. So uninstalling Context deletes every context anyone created after installing it, without listing them first.
Technical: ConfigManager::uninstall() runs $this->configFactory->listAll($module . '.') and deletes each one.
ModuleInstaller::uninstall() adds every installed module in required_by.ModuleInstaller::validateUninstall()).ConfigManager::getConfigEntitiesToChangeOnDependencyRemoval(), then onDependencyRemoval() on each.EntityDefinitionUpdateManager::uninstallEntityType().hook_schema()), with every row.What it does not do: remove configuration that uses the module without declaring it (that stays behind, broken), or delete files the module wrote.
From a Drupal 11 site with the standard profile plus Content Moderation:
| Module | What Uninstall Impact showed |
|---|---|
| Content Moderation | Blocked: 3,714 content moderation state records exist. Would delete the Editorial workflow and the Moderated content view. The editor and reviewer roles would lose their moderation permissions. |
| Image | Would delete 4 image styles and the image settings. 37 other configuration items would change to stop using it, and 11 would be deleted. Blocked while image fields hold data. |
| Contact | Would delete 2 contact forms and the contact settings. 3 roles would lose contact permissions. |
drush uninstall-impact context drush uninstall-impact webform,webform_ui --format=json
drush config:export to a separate folder), and back up the listed tables.