Delete branch

Deletes the specified branch from a project, and places all compute endpoints into an idle state, breaking existing client connections. You can obtain a project_id by listing the projects for your Neon account. You can obtain a branch_id by listing the project's branches. For related information, see Manage branches.

When a successful response status is received, the compute endpoints are still active, and the branch is not yet deleted from storage. The deletion occurs after all operations finish. You cannot delete a project's root or default branch, and you cannot delete a branch that has a child branch. A project must have at least one branch.

Language
Credentials
Click Try It! to start a request and see the response here!