Delete _old branches
Hi, how can I delete _old branches such as production_old_{date} after using restore to copy data from another branch?
I have never asked neon to create these branches and I don't see any option to disable them. They cannot be deleted either since they have children.
I've asked the neon AI and it told me the only way to remove the branches is to delete everything (wtf??).
Also neon tells me that the _old branches will affect my storage bill but it's literally impossible to delete them.
The only thing I want is to copy data from branch A to branch B. Is there any other way to do it except using restore?
2 Replies
plain-purple•4d ago
Hey!
You can't delete a backup branch that was created by a restore operation on a non-root branch, but you can free up its storage space :
https://neon.com/docs/introduction/branch-restore#deleting-backup-branches
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...
ratty-blushOP•3d ago
Not the answer I was hoping for but thanks anyway