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

# talkvalue auth logout

> Remove the active profile and clear its tokens from the system keyring.

End the current session by deleting the active profile and clearing its tokens from your system keyring. Other saved profiles are untouched, so this is safe to run on a shared machine when you only want to drop one account.

## Synopsis

```bash theme={null}
talkvalue auth logout
```

## Options

None. To target a specific profile, use the global `--profile` flag.

## Examples

### 1. Sign out of the active profile

```bash theme={null}
talkvalue auth logout
```

Removes the active profile and clears its tokens. The next command that needs auth will prompt you to run `auth login` again.

### 2. Sign out of a specific profile

```bash theme={null}
talkvalue auth logout --profile staging
```

The global `--profile` flag selects which saved profile to remove without touching the others.

### 3. Confirm sign-out in a script

```bash theme={null}
talkvalue auth logout --json | jq '.data.loggedOut'
# true
```

Branch on `data.loggedOut` to decide whether to chain a follow-up `auth login` for a new account.

## Response

```jsonc theme={null}
{
  "data": {
    "loggedOut": true,
    "profile": "you"
  }
}
```

If there's no active session to remove, the CLI returns a no-op response instead and exits `0`:

```jsonc theme={null}
{
  "data": {
    "loggedIn": false,
    "message": "No active session to log out from"
  }
}
```

## See also

* [`talkvalue auth login`](/cli/commands/auth/login). Sign back in.
* [`talkvalue auth list`](/cli/commands/auth/list). See the remaining profiles.
* [Authentication](/cli/authentication). Multi-profile workflow.
* [Global flags](/cli/global-flags). `--profile <name>` to target a specific profile.
