---
title: "auth logout"
description: "Remove authentication profile"
canonical: "https://pgbeam.com/docs/cli/auth/logout"
last-updated: "2026-10-29T19:01:20.000Z"
---

# auth logout

> Remove authentication profile

URL: https://pgbeam.com/docs/cli/auth/logout

{/* Auto-generated from CLI commands. Do not edit. Run `pnpm generate:cli-docs` to regenerate. */}

Remove stored authentication credentials. By default, removes the currently active profile (or the one specified with `--profile`). Use `--all` to remove every saved profile at once. A confirmation prompt is shown before deletion unless `--yes` is passed.

## Usage

```bash
pgbeam auth logout [flags]
```

## Options

| Option        | Description                                              | Required | Default |
| ------------- | -------------------------------------------------------- | -------- | ------- |
| `--all`       | Remove all saved profiles instead of just the active one | No       | `false` |
| `--yes`, `-y` | Skip the confirmation prompt                             | No       | `false` |

> **Global options**
>
> All [global options](/docs/cli/global-options) (`--token`, `--profile`,
> `--project`, `--org`, `--json`, `--no-color`, `--no-trunc`, `--debug`) are
> also available on this command.

## Examples

```bash
# Remove the active profile
pgbeam auth logout

# Remove a specific profile
pgbeam auth logout --profile staging

# Remove all profiles without confirmation
pgbeam auth logout --all --yes
```

## Output

Prints a success message confirming which profile was removed (e.g. `Profile "default" removed.`). If `--all` is used, confirms all profiles were removed.