Search + K

Command Palette

Search for a command to run...

Sign In

Delete a codespace from the organization

DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}
Copy endpoint
https://api.github.com

Deletes a user's codespace.

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

Parameters

path Path Parameters

Name Type
org required

The organization name. The name is not case sensitive.

string
username required

The handle for the GitHub user account.

string
codespace_name required

The name of the codespace.

string

Responses

202 application/json

Accepted

{}

Redirects

304

Not modified

unknown

Client Errors

401 application/json

Requires authentication

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
403 application/json

Forbidden

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
404 application/json

Resource not found

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}

Server Errors

500 application/json

Internal Error

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}