Main website
Government Drupal Developers NetworkCommunity
Resource library
Snippet

Drush one-liner: find enabled modules nobody uses

List enabled contrib modules with no config entities, as a starting point for clean-up.

1
TR
Tama Rangi

Department of Internal Affairs · 2 Oct 2026

drush pm:list --status=enabled --type=module --no-core --format=list \
  | while read m; do
      n=$(drush config:status 2>/dev/null | grep -c "$m\.")
      [ "$n" -eq 0 ] && echo "$m"
    done

Join GDDN to upvote and share your own resources.