---
title: "ezgh logout"
description: "Log out: revoke the profile's login and forget its credential."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh logout

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh logout [flags]
```

Log out of the profile (`--profile`, `EZGH_PROFILE`, or the default): its OAuth login is revoked on the server (RFC 7009), which ends it everywhere it was copied, and its stored credential is deleted. A stored API key is only forgotten here; revoke it with `ezgh iam api-keys delete`. `--all` logs out of every profile. `EZGH_API_KEY` is never touched: unset it yourself.

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--all` | boolean |  | log out of every profile |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/logout/index.mdx
