---
title: "Delete branches"
method: POST
path: "/api/v2/code-refs/repositories/{repo}/branch-delete-tasks"
tags: ["Code references"]
---

# Delete branches

`POST /api/v2/code-refs/repositories/{repo}/branch-delete-tasks`

Asynchronously delete a number of branches.

## Path parameters

- `repo` string, string, required — The repository name to delete branches for.

## Request body

- string[]

## Response `200`

Action succeeded

## Other responses

- `400` — Invalid request
- `401` — Invalid access token
- `403` — Forbidden
- `404` — Invalid resource identifier
- `429` — Rate limited

---

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