---
title: "oz0 mcp clients revoke"
description: "Revokes a grant by its ID (from `oz0 mcp clients list`), or with --client every grant of that client you may revoke: your own, or everyone's when you hold keys.manage."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/mcp/clients/revoke"
---
# oz0 mcp clients revoke

> Revokes a grant by its ID (from `oz0 mcp clients list`), or with --client every grant of that client you may revoke: your own, or everyone's when you hold keys.manage.

For: Operators and developers looking up a command.

Revokes a grant by its ID (from `oz0 mcp clients list`), or with --client every grant of that client you may revoke: your own, or everyone's when you hold keys.manage. The client's access and refresh tokens stop working within a few seconds on every edge; it must be approved again to connect. Each revocation is audited (mcp.client.revoked).

## Usage

```bash
oz0 mcp clients revoke <grant> | --client <client ID> [--tenant T] [flags]
```

## Flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --client
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      revoke every grant of this client ID that you may revoke
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --json
      </code>
    </td>
    
    <td>
      bool
    </td>
    
    <td>
      
    </td>
    
    <td>
      print JSON instead of a table
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --tenant
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      tenant
    </td>
  </tr>
</tbody>
</table>

## Inherited flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --context
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        $OZ0_CONTEXT or &lt;config dir>/orchestrator-zero/context.json
      </code>
    </td>
    
    <td>
      CLI context file written by server init
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --log-level
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        info
      </code>
    </td>
    
    <td>
      log level: debug, info, warn or error
    </td>
  </tr>
</tbody>
</table>

See [all `oz0` commands](https://docs.oz0.ai/reference/cli/oz0) and the [global flags](https://docs.oz0.ai/reference/cli/oz0#global-flags).


## Sitemap

See the full [sitemap](https://docs.oz0.ai/sitemap.md) for all pages.
