---
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 an organization owner has configured the organization to prevent members from deleting organization-owned
repositories, you will get a `403 Forbidden` response.

OAuth app tokens and personal access tokens (classic) need the `delete_repo` scope to use this endpoint.

## 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
- `409` — Conflict

---

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