---
title: "Deletes a branch mapping in this repository."
method: DELETE
path: "/projects/{projectKey}/repos/{repositorySlug}/branch-mappings"
tags: ["Branch mappings"]
---

# Deletes a branch mapping in this repository.

`DELETE /projects/{projectKey}/repos/{repositorySlug}/branch-mappings`

## Path parameters

- `projectKey` string, required
- `repositorySlug` string, required

## Query parameters

- `id` integer

## Response `200`

Branch mapping deleted

## Other responses

- `401` — The currently authenticated user does not have REPO_ADMIN credentials
- `404` — Project, Repository or Branch Mapping not found

---

[API](https://skmtc.net/mibexsoftware/apis/create-branch-wizard-for-bitbucket-server-rest-api.md) · [All operations](https://skmtc.net/mibexsoftware/apis/create-branch-wizard-for-bitbucket-server-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mibexsoftware/create-branch-wizard-for-bitbucket-server-rest-api/versions/959aba36c5b3/schema)
