diff --git a/cmd/ghcs/delete.go b/cmd/ghcs/delete.go index d79bcc448..e789ba1ba 100644 --- a/cmd/ghcs/delete.go +++ b/cmd/ghcs/delete.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "os" + "strings" "github.com/github/ghcs/api" "github.com/github/ghcs/cmd/ghcs/output" @@ -124,7 +125,7 @@ func DeleteByRepo(repo string) error { var deleted bool for _, c := range codespaces { - if c.RepositoryNWO != repo { + if strings.ToLower(c.RepositoryNWO) != strings.ToLower(repo) { continue } deleted = true