Remove Old GitHub Branch From Dropdown

Hello Everyone,

We are trying to figure out how to remove old deleted branches from the source control branch dropdown. We’ve deleted the branches on GitHub, but they still appear in the dropdown in Replit.

Any help is greatly appreciated.


I figured it out!

You have to use the prune command in the shell (NOT the console). The drop down doesn’t actually display deleted branches, it is displaying ‘references’ to these deleted branches. One can create local branches, this will not work for those branches. I use Replit I exclusively use remote branches, so this is the go-to solution. This may be something I need to change for the future, but for the moment –


$ git remote prune origin

For this to work you should be in the root directory of your project.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.