# Neon "reset from parent" deletes branch data — is that expected?

> Yes: Neon's reset-from-parent completely replaces a branch's data and schema with its parent's current state, with no backup branch left behind. What to do before resetting, and how to keep what you'd otherwise lose.

Source: https://scribase.com/neon-branch-reset-data-loss

This isn't a bug report — it's Neon's documented, intended behavior, and it surprises people because the branch's URL and connection keys stay exactly the same after a reset, so nothing in your app's config changes even though every row the branch held is gone.

## What reset from parent actually does

Neon's own guide states it directly: resetting a branch means "the data and schema is completely replaced with the latest data and schema from its parent," and "any local changes to the branch's Postgres data... are lost during the reset." The branch's URL and connection credentials do not change, which is exactly why this catches people off guard — the app keeps pointing at the same place, but what's behind it is gone.

"Unlike instant restore, a reset leaves no backup branch" by default, so there is no one-click undo once it runs — unless you used the --preserve-under-name flag to keep a copy of the pre-reset state as a new branch first.

## Sources

- [Neon: Reset from parent](https://neon.com/docs/guides/reset-from-parent)

## Before you reset a branch with data you might need

- If the branch might hold anything worth keeping, create it under a new name with --preserve-under-name first — this is the documented way to get a safety copy, since reset itself leaves none.
- Protected branches cannot be reset at all, per Neon's docs — marking a branch protected is one way to make an accidental reset structurally impossible.
- If you only wanted to pull in the parent's latest schema changes without losing the branch's own test data, reset is the wrong tool — create a fresh branch from the parent instead and re-apply what you need by hand.

## Sources

- [Neon: Reset from parent](https://neon.com/docs/guides/reset-from-parent)

## The same reset, plus a point-in-time window

Scribase's own branch reset works the same way as Neon's — `scribase branch reset <org> <project> <branch>` starts the branch over from its parent's current data; the URL and keys stay, and branch-only data is gone, same as above. What's different is the built-in point-in-time window: Scribase keeps old page versions for a one-day history window by default, so a branch can be recreated as it looked at a past moment with --from-time instead of needing a manual pre-reset copy — and --data snapshot/sanitized plus a --ttl control what a fresh branch starts with and how long it lives.

_Recreate branch data from before a reset, by timestamp_

```sh
scribase branch create acme shop recovered --from production \
  --from-time 2026-11-17T09:00:00Z --data snapshot
```

## Sources

- [Postgres branching](https://scribase.com/postgres-branching)

## FAQ

**Is there any way to undo a Neon branch reset after it runs?**

Not through the reset action itself — Neon's docs say it leaves no backup branch. --preserve-under-name taken before the reset is the documented way to keep a copy; after the fact, there is no built-in undo.

**Does the branch URL change after a reset?**

No — the connection string and keys stay the same, which is exactly why the data loss can go unnoticed until something queries for rows that are no longer there.

**Can I reset a protected branch by accident?**

No — Neon's docs state protected branches cannot be reset, which is the documented way to rule this out structurally for a branch you never want touched.

**What should I use instead if I only wanted the parent's new schema, not a full overwrite?**

Create a new branch from the parent and reapply your own data or changes by hand — reset is a full replace, not a selective schema sync.

## Related

- [Postgres branching](https://scribase.com/postgres-branching)
- [Neon branch limit exceeded](https://scribase.com/neon-branch-limit-exceeded)
- [Neon alternative](https://scribase.com/neon-alternative)
- [Neon free tier limits](https://scribase.com/neon-free-tier-limits)
- [Migrate from Neon](https://scribase.com/migrate/neon)