Skip to main content
drupalreleases
Release: Drupal 11.4.9 — Update released for Drupal core (11.4.9)! Release: Better Exposed Filters 7.2.0 — Minor update available for module better_exposed_filters (7.2.0). Release: Bootstrap 8.x-3.43 — Minor update available for theme bootstrap (8.x-3.43). Release: Layout Paragraphs 2.1.5 — Minor update available for module layout_paragraphs (2.1.5). Release: Layout Paragraphs 3.0.0 — Major update available for module layout_paragraphs (3.0.0). Release: Book 3.0.8 — Minor update available for module book (3.0.8). Release: Tagify 2.0.5 — Minor update available for module tagify (2.0.5). Release: Editoria11y Accessibility Checker 3.0.11 — Minor update available for module editoria11y (3.0.11). Module Revived: @font-your-face 4.3.0 — Module fontyourface updated after 7 months of inactivity (4.3.0). Security Coverage: Open Y Branch Selector — Module openy_branch_selector now has official Drupal security advisory coverage.

Unused Field Cleaner

Security covered Drupal 10–11
View on drupal.org

This module helps Drupal site administrators identify, archive, and remove unused fields to simplify maintenance and reduce technical debt. It provides intelligent analysis to detect which fields are no longer in use and offers workflows to safely retire them, with protection against accidental deletion of fields still in use.

Unused Field Cleaner is a Drupal governance and maintenance module that helps administrators safely identify, archive, deprecate, and remove unused fields from Drupal websites.

Over time, Drupal sites accumulate deprecated, abandoned, migration-generated, and unused fields that increase maintenance complexity, clutter administrative interfaces, slow down development workflows, and create long-term technical debt.

This module provides intelligent field usage analysis, dependency validation, retirement workflows, backup protection, and bulk cleanup operations to safely manage the lifecycle of Drupal fields.

Designed for Drupal 10 and Drupal 11, the module helps organizations improve maintainability, simplify content architecture, and reduce legacy configuration overhead.

Features

Field Usage Detection

  • Detect unused and stale fields
  • Track field usage across entity bundles
  • Calculate usage score and last usage date
  • Identify deprecated and retirement-ready fields

Dependency Protection

Prevent accidental deletion of fields referenced in:

  • Views
  • Entity displays
  • Form displays
  • Layout Builder
  • JSON:API
  • Search API
  • GraphQL
  • Custom integrations

Field Retirement Workflow

  • Mark fields as deprecated
  • Archive fields before removal
  • Retire fields safely
  • Track retirement history

Automatic Backups

  • Backup field configuration before cleanup
  • Export field data snapshots
  • Archive retired fields
  • Restore support for retired fields

Bulk Cleanup Operations

  • Bulk retire fields
  • Bulk delete fields
  • Dry-run cleanup mode
  • Batch processing support

Dashboard & Reporting

  • Field usage statistics
  • Potential cleanup savings
  • Deprecated field tracking
  • Dependency reports
  • Cleanup history reports

Drush Commands

drush ufc:scan
# Scan all fields and update usage data

drush ufc:stats
# Show dashboard statistics

drush ufc:list
# Display table of all scanned fields

drush ufc:list --status=unused --format=csv
# Export unused fields as CSV

drush ufc:clean
# Retire safe-to-remove fields with automatic backup

drush ufc:clean --delete --yes
# Permanently delete fields without confirmation

drush ufc:clean --dry-run
# Preview cleanup actions without making changes

drush ufc:deprecate field_name node article
# Mark a specific field as deprecated

Benefits

  • Reduce technical debt
  • Simplify content architecture
  • Improve maintainability
  • Reduce admin clutter
  • Safely retire obsolete fields
  • Prevent accidental field deletion
  • Improve governance workflows

Depends on

Dependencies of the latest stable release

  • field Drupal core
  • node Drupal core
  • user Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
May 2026
Latest release
3 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.0.1 Stable 10–11 Jun 15, 2026
1.0.0 Stable 10–11 May 27, 2026
1.0.x-dev Dev 10–11 May 27, 2026