Drupal is a registered trademark of Dries Buytaert
Release: Save & Edit 2.2.0 Minor update available for module save_edit (2.2.0). Release: Myo Theme 1.0.8 Minor update available for theme myo (1.0.8). Release: Commerce Config Actions 1.2.0 Minor update available for module commerce_config_actions (1.2.0). Release: Myo Theme 1.0.7 Minor update available for theme myo (1.0.7). Release: Entity Registry 1.0.5 Minor update available for module entity_registry (1.0.5). Release: Opensolr Search 4.2.0 Minor update available for module opensolr_search (4.2.0). Release: Simple password policy 1.1.4 Minor update available for module simple_password_policy (1.1.4). Release: Commerce Mautic Connect 1.4.0 Minor update available for module commerce_mautic_connect (1.4.0). Module Revived: Comment Notify 8.x-1.6 Module comment_notify updated after 10 months of inactivity (8.x-1.6). Usage Milestone: OpenTelemetry Module opentelemetry crossed 1,000 active installs.

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

Activity

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

Release Timeline

Releases

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