# Deleting tag synonym deletes tag

**URL:** https://meta.discourse.org/t/deleting-tag-synonym-deletes-tag/396604
**Category:** Bug
**Tags:** tags
**Created:** [February 20, 2026, 2:23pm UTC](https://meta.discourse.org/t/deleting-tag-synonym-deletes-tag/396604 "2026-02-20T14:23:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Simon\_Manning](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon_manning/32/198596_2.png) [@Simon\_Manning](https://meta.discourse.org/u/Simon_Manning)
#### Post date: [February 20, 2026, 2:23pm UTC](https://meta.discourse.org/t/deleting-tag-synonym-deletes-tag/396604/1 "2026-02-20T14:23:32Z")

</div>

Attempting to merge two tags and remove the incorrect one, I created, then deleted a synonym which resulted in both tags being deleted.

**Discourse version:** 2026.2.0-latest ([7e603d4374](https://github.com/discourse/discourse/commits/7e603d43745b42777b6b718bc882aebaaf0a1711))

**Steps to reproduce:**

1. Create a new topic
2. Give it two tags, `tag1` and `tag2`, and submit it
3. Click `tag1` to navigate to tag filter page
4. Click the wrench to open tag settings
5. Click Edit Synonyms
6. Add `tag2`
7. \>\> At this point `tag2` is removed from the created topic
8. In the list of synonyms, click the small trashcan icon beside `tag2`
9. Choose yes when prompted to remove the synonym
10. \>\> `tag1` is deleted along with the synonym

I use two tags applied to a single topic in the steps for simplicity, this also occurs when the two tags are applied to two separate topics.

**Additional notes:**

The log entry for the deleted tag has no details, it could be useful for this to contain the topic IDs the tag was removed from as part of deleting it.

As far as I could tell, deleting a tag also creates no record of topic edits so I couldn’t use [Data Explorer](https://meta.discourse.org/t/32566?silent=true) to find topics with `updated_at > 'some time'` or list revisions created after ‘some time’.

---

<div class="post-metadata">

### Author: ![Simon\_Manning](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon_manning/32/198596_2.png) [@Simon\_Manning](https://meta.discourse.org/u/Simon_Manning)
#### Post date: [February 20, 2026, 3:52pm UTC](https://meta.discourse.org/t/deleting-tag-synonym-deletes-tag/396604/2 "2026-02-20T15:52:02Z")

</div>

I looked through the commits since that version and couldn’t see anything directly related, however I’ve just confirmed that the steps as written do not cause this problem (they correctly delete synonym alone) when running 2026.2.0-latest ([f6d8f1a458](https://github.com/discourse/discourse/commits/f6d8f1a4588fbf8716381789d63d138404d5a4a2)), i.e. the latest commit at time of writing.

Not sure if it was fixed as a side effect in one of the tag-related commits or if I am just being blind checking the commits.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 23, 2026, 5:41am UTC](https://meta.discourse.org/t/deleting-tag-synonym-deletes-tag/396604/3 "2026-02-23T05:41:43Z")

</div>

> [@Simon\_Manning](#):
>
> Not sure if it was fixed as a side effect in one of the tag-related commits or if I am just being blind checking the commits.

Very possible, please flag to reopen if it is still an issue.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 23, 2026, 5:41am UTC](https://meta.discourse.org/t/deleting-tag-synonym-deletes-tag/396604/4 "2026-02-23T05:41:49Z")

</div>


