Gcloud Auth Revoke
Oct 19, 2018
1 minute read

gcloud auth revoke [ACCOUNTS …] [–all] [GCLOUD_WIDE_FLAG …]

Revokes credentials for the specified user accounts or service accounts. When you revoke the credentials, they are removed from the local machine. If no account is specified, this command revokes credentials for the currently active account, effectively logging out of that account.

You can revoke credentials when you want to disallow access by gcloud and other Cloud SDK tools using a specified account. You don’t need to revoke credentials to switch between accounts.

kwame@r2d2:~$ gcloud auth revoke account1@email.com
Revoked credentials:
 - account1@email.com
     Credentialed Accounts
ACTIVE  ACCOUNT
*       account2@email.com
kwame@r2d2:~$ 
kwame@r2d2:~$ gcloud auth list
     Credentialed Accounts
ACTIVE  ACCOUNT
*       account2@email.com 

To set the active account, run:
    $ gcloud config set account `ACCOUNT`

kwame@r2d2:~$