@techAPJ が教えてくれたコマンドは私の環境では動作しませんでした。そのため、以下のページに記載されている(少し異なる)コマンドを実行しました:How can I delete a tag in development database (on local)? - #4 by simon
シノニムタグとして「testing」を持つタグ「testing」の削除を試みたところ、以下の結果が得られました。
[1] pry(main)> t = Tag.find_by_name('testing')
=> #<Tag:0x000055a268f6f990
id: 35,
name: "testing",
topic_count: 0,
created_at: Wed, 11 Nov 2020 04:38:06 UTC +00:00,
updated_at: Thu, 19 Nov 2020 03:44:35 UTC +00:00,
pm_topic_count: 0,
target_tag_id: 35>
[2] pry(main)> t.destroy!
SystemStackError: stack level too deep
from /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.3/lib/active_record/reflection.rb:120:in `_reflect_on_association'
[3] pry(main)>