---
title: "oz0 plugin revoke"
description: "Takes functions and agents of other plugins out of a plugin's grant, or the whole grant with --all."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/plugin/revoke"
---
# oz0 plugin revoke

> Takes functions and agents of other plugins out of a plugin's grant, or the whole grant with --all.

For: Operators and developers looking up a command.

Takes functions and agents of other plugins out of a plugin's grant, or the whole grant with --all. The plugin stays installed; its agents and flows reach only what is left. The edges refuse what is gone within seconds, and the running jobs that held what was revoked, and no other path to it, are cancelled; the command prints the receipt that lists them (`oz0 receipt show`).

A function a granted \<tool>.* covers narrows the wildcard to the tool's other functions, as the nodes listed them. A later install of a version that still declares what was revoked asks for it again (--accept-uses). Tenant admins may; it is audited (uses.revoke).

## Usage

```bash
oz0 plugin revoke <plugin> [flags]
```

## Flags

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

<tbody>
  <tr>
    <td>
      <code>
        --agent
      </code>
    </td>
    
    <td>
      stringArray
    </td>
    
    <td>
      
    </td>
    
    <td>
      an agent of another plugin to revoke; repeatable
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --all
      </code>
    </td>
    
    <td>
      bool
    </td>
    
    <td>
      
    </td>
    
    <td>
      revoke the whole grant
    </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>
        --skill
      </code>
    </td>
    
    <td>
      stringArray
    </td>
    
    <td>
      
    </td>
    
    <td>
      a skill of another plugin to revoke, &lt;plugin>/&lt;skill> (or &lt;plugin>/* as granted); repeatable
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --tenant
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      tenant
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --tool
      </code>
    </td>
    
    <td>
      stringArray
    </td>
    
    <td>
      
    </td>
    
    <td>
      a function to revoke, &lt;tool>.&lt;function>, or &lt;tool>.* for all of a tool's; repeatable
    </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.
