---
title: "Delete a database branch"
method: DELETE
path: "/v1/branches/{branch_id_or_ref}"
tags: ["Environments"]
---

# Delete a database branch

`DELETE /v1/branches/{branch_id_or_ref}`

Deletes the specified database branch. By default, deletes immediately. Use force=false to schedule deletion with 1-hour grace period (only when soft deletion is enabled).

## Path parameters

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

## Query parameters

- `force` boolean

## Response `200`

- BranchDeleteResponse
  - `message` 'ok', required

## Other responses

- `500` — Failed to delete 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)
