# logout
> Reference for motherduck logout, which removes the token saved by motherduck login.
Remove saved token.

This deletes `${MOTHERDUCK_HOME:-~/.motherduck}/credentials.json`, written by
[`login`](./login.md) or [`new`](./new.md). It has no effect on the environment
variable `MOTHERDUCK_TOKEN`.

## Usage

```bash
motherduck logout
```

`logout` has no formatted output, so it doesn't take `-o, --output`.

## Related

- [`status`](./status.md) confirms you're signed out
- [Authentication](/getting-started/interfaces/motherduck-cli/authentication/)


---

## Docs feedback

MotherDuck accepts optional user-submitted feedback about this page at `GET https://motherduck.com/docs/api/feedback/agent`.
For agents and automated tools, feedback submission should be user-confirmed before sending.

URL-encode query parameter values and send a GET request:

```text
GET https://motherduck.com/docs/api/feedback/agent?page_path=%2Fsql-reference%2Fmotherduck-cli%2Flogout%2F&page_title=logout&text=<url-encoded user feedback, max 2000 characters>
```

Optionally append `&source=<url-encoded interface identifier>` such as `claude.ai` or `chatgpt`.

`page_path` and `text` are required; `page_title` and `source` are optional. Responses: `200 {"feedback_id": "<uuid>"}`, `400` for malformed query parameters, and `429` when rate-limited.
