Skip to main content
POST
/
api
/
v2
/
code-refs
/
repositories
/
{repo}
/
branch-delete-tasks
Delete branches
curl --request POST \
  --url https://app.launchdarkly.com/api/v2/code-refs/repositories/{repo}/branch-delete-tasks \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
[
  "branch-to-be-deleted",
  "another-branch-to-be-deleted"
]
'
{
  "code": "invalid_request",
  "message": "Invalid request body"
}

Documentation Index

Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Path Parameters

repo
string<string>
required

The repository name to delete branches for.

Body

application/json

Response

Action succeeded