Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Module Cleanup

Security covered Under active development 357 sites

This module helps clean up leftover data and resolve common errors after uninstalling or deleting modules. It can remove transient data, fix issues with non-existent entity types, and clear "No available releases found" errors in the update system.

Lists uninstalled or deleted modules with leftover transient data and allows the admin to delete any leftover data. A fix for Module 'module_name' has an entry in the system.schema key/value storage.
A fix for The 'module_name' entity type does not exist error. The module with the entity must be installed.

Added a fix for No available releases found in version 1.0.3. As a side note, there is most likely a module you have installed that is causing this error. You may want to record what configurations and entities you have saved and turn the modules off and on till you find out what module is causing the errors.

Added a fix for How to fix "non-existent config entity name returned by FieldStorageConfigInterface::getBundles()" in version 1.0.6. The fix uses a logger service that listens for a log to watchdog, so when you run cache clear or install a module it automatically cleans up the error. The module will display a message at the top of the install page when you install this module if there was an error that was fixed.

Drush Commands
Command: modcup:delete-config: Deletes left over data after a module is uninstalled. One required parameter. Parameter is the module machine name.
Alias: modcup-dc

Command: modcup:field-purge-batch: Runs field_purge_batch(1000) only and outputs errors as messages.
Alias: modcup-fpb

Command: modcup:create-storage: Creates a field storage only. Two required parameters. 1st parameter is the field name. 2nd parameter is the entity type.
Alias: modcup-cs

Command: modcup:delete-field: Runs field_purge_batch(1000), creates a field storage if needed and then deletes the field and field storage. The module with the entity must be installed. Two required parameters. 1st parameter is the field name. 2nd parameter is the entity type.
Alias: modcup-df

Command: modcup:clear-updates: Cleans up No available releases found errors in Available updates.
Alias: modcup-cu

Install with composer
Enable module
Go to Configuration->System->Delete transient module data

Built by Easy Life Agents @ Global Web Methods

More Modules

  • Block List: Lists every block on the site by the module that provides it, core included, with a plain-English description of each block and every place it is used.
  • Drupal Cleanup: Finds and safely removes the data a Drupal site leaves behind, with backups, dry runs and records-retention controls for government sites.
  • NIST for Gov: Reports that check a Drupal site against NIST SP 800-53 Rev. 5 controls, starting with API keys, passwords and tokens stored in plain text.
  • Permissions Table: Fixes the permissions table by keeping its header fixed at the top and its horizontal scrollbar fixed at the bottom.
  • Recipe Filter: Adds a "Recipe Type" sidebar menu to the Project Browser Recipes page, the same way Module Filter builds a sidebar for the Modules page.
  • Sentinel: Warns people about danger where they are: FEMA public alerts, National Weather Service alerts and FEMA flood zones, with a warning when a flood alert hits a high-risk flood zone.
  • Uninstall Impact: Shows what uninstalling a module deletes, before you do it.
Drupal 8–11

Ask your assistant about Module Cleanup

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
9
Tracked since
Jun 2024
Latest release
4 months ago
Releases (12 mo)
3 ▼ from 4
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.1.0 Stable 8–11 Jun 14, 2026
1.0.7 Stable 8–11 Mar 9, 2026
1.0.6 Stable 8–11 Mar 7, 2026
1.0.5 Stable 8–11 Mar 18, 2025
1.0.4 Stable 8–11 Mar 18, 2025
1.0.3 Stable 8–11 Mar 7, 2025
1.0.2 Stable 8–11 Dec 9, 2024
1.0.x-dev Dev 8–11 Sep 25, 2024
1.0.1 Stable 8–11 Jun 20, 2024