lmonninger
lmonninger

Reputation: 961

Gcloud list all projects including ones pending deletion?

I know I can:

gcloud projects list

However, this does not show projects pending deletion. How can list those as well?

Upvotes: 1

Views: 897

Answers (2)

Riccardo
Riccardo

Reputation: 1237

If you want to just filter:

gcloud projects list --filter='lifecycleState:DELETE_REQUESTED'  [--format yaml|json]

PROJECT_ID                  NAME                 PROJECT_NUMBER
my-project-deleteme-298812  My Project DELETEME  1033904603578

Note this is also in the help function of gcloud projects list --help

Upvotes: 1

DazWilkin
DazWilkin

Reputation: 40091

Try:

gcloud projects list --filter='lifecycleState:*'

Upvotes: 3

Related Questions