---
title: "Delete a repository"
method: DELETE
path: "/repositories/{workspace}/{repo_slug}"
tags: ["Repositories"]
---

# Delete a repository

`DELETE /repositories/{workspace}/{repo_slug}`

Deletes the repository. This is an irreversible operation.

This does not affect its forks.

## Query parameters

- `redirect_to` string

## Response `204`

Indicates successful deletion.

## Other responses

- `403` — If the caller either does not have admin access to the repository, or the repository is set to read-only.
- `404` — If the repository does not exist.

---

[API](https://skmtc.net/bitbucket/apis/bitbucket-api.md) · [All operations](https://skmtc.net/bitbucket/apis/bitbucket-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bitbucket/bitbucket-api/versions/7e9be973015d/schema)
