Branches on the Vercel Integration are not being deleted
Hi, I have the "Automatically delete obsolete Neon branches" switch on but the branches are still not being deleted. I'm not sure if it is a bug or do I need to turn something else on?

6 Replies
equal-aqua•2y ago
Hmm, are these branches merged?
deep-jadeOP•2y ago
I'm not to sure if all of them were merged, I think some of them were rejected and canceled
equal-aqua•2y ago
So a Neon branch created by the Vercel integration will become obsolete when we can no longer find the git branch
deep-jadeOP•2y ago
yes, they are obsolete, the issue is that they are not being automatically deleted
do only merged branches get deleted when they become obsolete?
equal-aqua•2y ago
cc @Mike J
like-gold•2y ago
Hey! We consider a Neon branch to be obsolete when the git branch no longer exists. This means that as well as the PR being merged/cancelled the git branch must be deleted. With the Vercel integration, Neon does not have direct line of sight to your git repo, so the act of deleting the git branch won't mark the Neon branch obsolete. Instead, we check during your next deploy.
That said, in the screen grab it appears branches are being marked obsolete correctly and aren't being deleted. We did make a change around this logic last week … are you still seeing the issue? If you are please raise a support ticket or email me mike@neon.tech with the details (branch id, project id etc) so I can ask the team to take a look.