---
title: "Delete a codespace from the organization"
method: DELETE
path: "/orgs/{org}/members/{username}/codespaces/{codespace_name}"
tags: ["codespaces"]
---

# Delete a codespace from the organization

`DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}`

Deletes a user's codespace.

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

## Path parameters

- `org` string, required
- `username` string, required
- `codespace_name` string, required

## Response `202`

Accepted

- object

## Other responses

- `304` — Not modified
- `401` — Requires authentication
- `403` — Forbidden
- `404` — Resource not found
- `500` — Internal Error

---

[API](https://skmtc.net/github/apis/api-github-com.md) · [All operations](https://skmtc.net/github/apis/api-github-com/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/api-github-com/revisions/a367f7028301/schema)
