---
title: "agents revoke"
description: "Revoke an agent credential"
canonical: "https://pgbeam.com/docs/cli/agents/revoke"
last-updated: "2026-10-30T03:14:55.000Z"
---

# agents revoke

> Revoke an agent credential

URL: https://pgbeam.com/docs/cli/agents/revoke

{/* Auto-generated from CLI commands. Do not edit. Run `pnpm generate:cli-docs` to regenerate. */}

Permanently revokes the credential and drops any live connections.

## Usage

```bash
pgbeam agents revoke <id> [flags]
```

## Options

| Option        | Description                                                 | Required | Default |
| ------------- | ----------------------------------------------------------- | -------- | ------- |
| `<id>`        |                                                             | Yes      | -       |
| `--yes`, `-y` | Skip the confirmation prompt (useful for scripts and CI/CD) | No       | -       |

> **Global options**
>
> All [global options](/docs/cli/global-options) (`--token`, `--profile`,
> `--project`, `--org`, `--json`, `--no-color`, `--no-trunc`, `--debug`) are
> also available on this command.

## Examples

```bash
# Revoke an agent credential
pgbeam agents revoke

# Output as JSON
pgbeam agents revoke --json
```

## Output

Renders a human-readable table or detail view by default; pass `--json` for the raw API response.