每个仓库甚至每个分支可创建多个代码空间。 However, each user account has a limit of 10 codespaces. 如果您已达到上限，想要创建一个新的代码空间，必须先删除一个旧代码空间。
Note: Only the person who created a codespace can delete it. There is currently no way for organization owners to delete codespaces created within their organization.
Navigate to the "Your Codespaces" page at github.com/codespaces.
To the right of the codespace you want to delete, click , then click Delete
在下拉菜单中，单击 Delete Codespace（删除代码空间）。
要了解有关 GitHub CLI 的更多信息，请参阅“关于 GitHub CLI”。
To delete a codespace use the
gh codespace delete subcommand and then choose a codespace from the list that's displayed.
gh codespace delete
If you have unsaved changes, you'll be prompted to confirm deletion. You can use the
-f flag to force deletion, avoiding this prompt.
For more information about this command, see the GitHub CLI manual.