# db tokens invalidate

> db tokens invalidate — Turso documentation.
> Canonical HTML: https://tursodb.cn/docs/cli/db/tokens/invalidate/
> Upstream Source (MIT): https://docs.turso.tech/cli/db/tokens/invalidate
> Language: en

---
You can invalidate all database-scoped tokens for a single database by running the following command:

```bash
turso db tokens invalidate <database-name> [flags]
```

## Flags

| Flag | Description |
| - | - |
| `-y`, `--yes` | Confirms the invalidation of all existing db tokens. |

<div class="doc-callout doc-callout-warning"><div class="doc-callout-title">WARNING</div><div class="doc-callout-body">

On AWS, this only invalidates tokens created for this database (for example with `turso db tokens create`). Group tokens, and tokens for other databases in the same group, are not invalidated and keep working. Clients using the invalidated tokens will need new ones.

To invalidate group tokens, use [`turso group tokens invalidate`](/docs/cli/group/tokens/invalidate/).

</div></div>
