# Revoke an agent

Revoking an agent ends its token at once, on every machine of your contour. It cannot be undone.

**In short:** Agents tab → the agent → Revoke, then confirm. Its next call gets `unauthorized`.

## When to use this

A token may have leaked, an agent does what you did not ask for, or you no longer use it. To stop
every agent on one machine instead, [pause the machine](https://docs.cmdop.ai/guides/pause-and-presence.md).

## Steps

1. Open your page and the Agents tab.
2. Pick the agent, press Revoke and confirm.
3. To bring it back, [connect it again](https://docs.cmdop.ai/start/quickstart-agent.md): it becomes a new agent with a new
   token, and starts with `read` only.

## Check

The agent's next call returns [`unauthorized`](https://docs.cmdop.ai/reference/errors/unauthorized.md). What it did stays
in the record under its name.

## Related

[Tokens](https://docs.cmdop.ai/concepts/tokens.md) · [Grant risk classes](https://docs.cmdop.ai/guides/access/grant.md)
