CARVIEW |
Select Language
HTTP/2 200
server: GitHub.com
content-type: text/html; charset=utf-8
last-modified: Wed, 30 Jul 2025 21:27:58 GMT
access-control-allow-origin: *
etag: W/"688a8e5e-161d5"
expires: Thu, 31 Jul 2025 08:20:08 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: F59C:DB726:53F47:664A5:688B24DE
accept-ranges: bytes
age: 0
date: Thu, 31 Jul 2025 08:10:08 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210061-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753949409.735744,VS0,VE219
vary: Accept-Encoding
x-fastly-request-id: 5dcc6d9262f01d8b205a6b00e7105e9775590f06
content-length: 9728
GitHub CLI | Take GitHub to the command line
CLI manual
gh codespace delete
gh codespace delete [flags]
Delete codespaces based on selection criteria.
All codespaces for the authenticated user can be deleted, as well as codespaces for a specific repository. Alternatively, only codespaces older than N days can be deleted.
Organization administrators may delete any codespace billed to the organization.
Options
-
--all
- Delete all codespaces
-c
,--codespace <string>
- Name of the codespace
-
--days <N> (default 0)
- Delete codespaces older than N days
-f
,--force
- Skip confirmation for codespaces that contain unsaved changes
-o
,--org <login>
- The login handle of the organization (admin-only)
-R
,--repo <string>
- Filter codespace selection by repository name (user/repo)
-
--repo-owner <string>
- Filter codespace selection by repository owner (username or org)
-u
,--user <username>
- The username to delete codespaces for (used with --org)