---
title: "Delete a repository"
method: DELETE
path: "/repos/{owner}/{repo}"
tags: ["repos"]
---

# Delete a repository

`DELETE /repos/{owner}/{repo}`

Deleting a repository requires admin access. If OAuth is used, the `delete_repo` scope is required.

If an organization owner has configured the organization to prevent members from deleting organization-owned
repositories, you will get a `403 Forbidden` response.

## Path parameters

- `owner` string, required
- `repo` string, required

## Response `204`

Response

## Other responses

- `307` — Temporary Redirect
- `403` — If an organization owner has configured the organization to prevent members from deleting organization-owned repositories, a member will get this response:
- `404` — Resource not found

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-4.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-4/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-4/versions/ee6c7a46328e/schema)
