We want to remove tags (of Tags vocabulary) automatically when all pages referring to this tag are removed.
Is there a module for this?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
There are a couple of modules that might help:
Taxonomy Orphanage (specifically the cron interface)
This module provides interfaces (drush, cron, admin form) for removing orphaned taxonomy term references from entities.
Field reference delete (sandbox only)
This module removes references to a deleted entity from fields stored in an SQL database. It exists to prevent stale references to non-existent content from causing unexpected problems (for example, when the referencing content is being displayed).