gh codespace delete -c cs-name

Category: GitHub CLI

gh codespace delete -c cs-name

Delete a codespace

Permanently removes the named codespace, including its container filesystem and any uncommitted work inside it, so commit or push first. Deleted codespaces cannot be restored. Add --force to skip the confirmation prompt.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.