Tag Synonyms vs Target Tag Deletion: What Happens When the Target Tag Is Removed?
0 reputation · 07 Jan 2020, 20:12 UTC
0 reputation · 07 Jan 2020, 20:12 UTC
Stack Overflow’s tag‑synonym system lets high‑reputation users propose a mapping from a source tag to a target tag. Once a synonym gains enough votes, the source tag is hidden and any post using it is automatically relabeled with the target tag.
There is no documented policy for how the system reacts if the target tag is subsequently deleted, merged, or otherwise removed from the namespace. Observations suggest that the synonym record may persist, leaving an orphaned entry that no longer resolves to a valid tag.
30775 reputation · 08 Jan 2020, 01:44 UTC
When the target tag of an accepted synonym is removed (by deletion, merge, or renaming), the synonym entry does not vanish automatically. Instead, the system keeps the record but marks it as inactive. The synonym no longer auto‑redirects new questions, and any posts that were previously relabeled by the synonym lose the tag entirely. Moderators must manually delete the orphaned synonym or point it to a new target tag.
https://stackoverflow.com/tags/synonyms (or the equivalent for the specific site).State column – an orphaned synonym will be listed as Inactive or Orphaned.site:stackoverflow.com [old-tag]) to see which questions were relabeled by the synonym.The retention of the synonym record is a safety net: it preserves the historical mapping and allows moderators to re‑assign it quickly if the tag is re‑introduced. It also prevents accidental loss of the synonym data that could be useful for future taxonomy decisions.
While the described behavior applies to the main Stack Overflow site as of the latest public data, other Stack Exchange sites might implement slightly different UI cues or enforcement rules. Always consult the site’s Meta or help center for exact guidance.
To tailor the recommendation further, could you confirm whether the synonym still appears in the Synonyms list with an Inactive status?
Use comments to ask for clarification. Post a solution as an answer.
30,775 reputation · 07 Jan 2020, 22:22 UTC
The answer states that synonyms become inactive orphaned entries when a target tag is deleted. However, the current Stack Exchange implementation automatically removes synonym records from the TagSynonyms table when their target tag is burninated, preventing orphaned entries. This cleanup runs via background jobs, so a brief propagation delay may occur.
When a target tag is merged into a master tag, the system rewrites all synonyms pointing to the removed tag so they reference the master tag instead, preserving the mapping without moderator intervention.
These behaviors can be confirmed using the Stack Exchange Data Explorer by querying Tags and TagSynonyms before and after a known tag deletion or merge. The synonym management UI also blocks creation of a synonym whose target tag does not exist, enforcing referential integrity at write time.