---
title: "Restore a scheduled branch deletion"
method: POST
path: "/v1/branches/{branch_id_or_ref}/restore"
tags: ["Environments"]
---

# Restore a scheduled branch deletion

`POST /v1/branches/{branch_id_or_ref}/restore`

Cancels scheduled deletion and restores the branch to active state

## Path parameters

- `branch_id_or_ref` union, required
  - string — Project ref
  - string, uuid

## Response `200`

- BranchRestoreResponse
  - `message` 'Branch restoration initiated', required

## Other responses

- `500` — Failed to restore database branch

---

[API](https://skmtc.dev/supabase/apis/management-api.md) · [All operations](https://skmtc.dev/supabase/apis/management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supabase/management-api/revisions/a7cb39418064/schema)
