Deleted branch not going away

I deleted a remote branch on my repository. However, it still shows up with strikeout, and I can’t seem to be able to get rid of it. It no longer exists at the git level, and if I click on it, it takes me to a 404 page. I am not sure what the other button (looks like undo) is supposed to do, but it does not do anything.

Do I have to trigger garbage collection in order for all references of this branch to go away?

There is a “Garbage collection” option under Site Settings, but it freezes the site every time I try using it.

Any ideas on how to solve this?

Did you find a way to resolve this? Facing the same issue currently…

Hi, is there any update on this, I am facing the same issue ,
as I am using Gitea Version 1.21.10

I don’t think your problem is the same as before because from 1.21, all branches have been synced into database. Could you have a screenshot?

The deleted branches went away after clicking the “Garbage collection” under Site Settings

Yep, they are kept by git for some time, I think the default is 7 days.
Unless of course you manually run GC (i.e. via the admin settings), then they are removed immediately.