1GH-CODESPACE-DELETE(1) GitHub CLI manual GH-CODESPACE-DELETE(1)
2
3
4
6 gh-codespace-delete - Delete codespaces
7
8
9
11 gh codespace delete [flags]
12
13
14
16 Delete codespaces based on selection criteria.
17
18
19 All codespaces for the authenticated user can be deleted, as well as
20 codespaces for a specific repository. Alternatively, only codespaces
21 older than N days can be deleted.
22
23
24 Organization administrators may delete any codespace billed to the or‐
25 ganization.
26
27
28
30 --all Delete all codespaces
31
32
33 -c, --codespace <string>
34 Name of the codespace
35
36
37 --days <N>
38 Delete codespaces older than N days
39
40
41 -f, --force
42 Skip confirmation for codespaces that contain unsaved changes
43
44
45 -o, --org <login>
46 The login handle of the organization (admin-only)
47
48
49 -R, --repo <string>
50 Filter codespace selection by repository name (user/repo)
51
52
53 --repo-owner <string>
54 Filter codespace selection by repository owner (username or org)
55
56
57 -u, --user <username>
58 The username to delete codespaces for (used with --org)
59
60
61
63 gh-codespace(1)
64
65
66
67 Nov 2023 GH-CODESPACE-DELETE(1)