N
Neon5mo ago
equal-aqua

Confusing branches and backups. Unclear how to delete all branches

Hi! We are in quite a pickle with the neondb branches. We have 6 branches now one of them being master - the main one we use. When i'm trying to cleanup, none of the branches are letting me to delete them, it's either the "cannot delete branch that has children" or "cannot delete root". When I try to flip the default branch by using the "restore from branch" features, i end up with one more branch which is created every time I do the restore (which also cannot be deleted). I'm afraid we are stuck and unable to delete these branches and not even sure at this point how "restore from branch" functionality is meant to work without getting into such situation. I do see the early access "backup and restore" function, however, it seems to not work with the previous backup mechanism with branches as it's not letting to create a snapshot when branches are involved. Could you please clarify how this feature is meant to be used and how would it be possible to have 1 branch and delete all the rest 🙏 I presume backups via branches are more flexible than just snapshotting, however the deletion part is unclear.
No description
1 Reply
genetic-orange
genetic-orange5mo ago
Hi, you cannot delete branches with children or backup branches created from non-root branches. Please see: https://neon.tech/docs/introduction/branch-restore#deleting-backup-branches Neon Support can help you clean this up, though. Please open a support ticket here: https://console.neon.tech/app/projects?modal=support
Neon
Instant restore - Neon Docs
Restore data to any point in time Querying historical data Configure restore window With Neon's instant restore capability, also known as point in time restore or PITR, you can easily restore a branch...

Did you find this page helpful?