# skmtc logout



## Synopsis [#synopsis]

```
skmtc logout [--json]
```

Like `doctor` and `clean`, `logout` has no interactive Ink variant —
it always runs headless.

## Behavior [#behavior]

Deletes `~/.skmtc/auth.json` and reports whether a file was removed.
Running it again (or when never logged in) is a no-op that still
exits 0. It touches only the stored file — `--token` flags and
`$SKMTC_HUB_TOKEN` are the caller's to manage.

## JSON output [#json-output]

```jsonc
{ "type": "logged-out", "removed": true }   // a credential was deleted
{ "type": "logged-out", "removed": false }  // nothing was stored — still exit 0
```

## Exit codes [#exit-codes]

| Code | Meaning             |
| ---- | ------------------- |
| `0`  | Always (idempotent) |

## See also [#see-also]

* [`login`](/docs/reference/cli/login) — store a credential
