---
title: "oz0 kill"
description: "Usage and flags for oz0 kill."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/kill"
---
# oz0 kill

> Usage and flags for oz0 kill.

For: Operators and developers looking up a command.

Kill switches stop one agent (or flow), one tool or one tenant on every edge and node within seconds: no new jobs start, model calls are refused, and running jobs are paused (--mode park, the default; they resume when the switch is released) or cancelled (--mode cancel). A tool's switch makes every node refuse its calls. Setting and releasing a switch is in the audit log, with who and why.

A switch bumps the tenant's authority epoch: every edge refuses the calls of the jobs it reaches, a child another agent started of a stopped agent included, keyed by each call's binding; an edge stops exactly those jobs, of every workflow type, and writes a receipt of what stopped and what could not be proven stopped, which management signs with the audit key. The command prints the receipt's ID (`oz0 receipt show`).

Setting a switch that holds already returns it; with --mode cancel on a parked one, its jobs are cancelled instead. A switch a cluster admin set only a cluster admin may release or change. The reason is at most 500 characters.

## Usage

```bash
oz0 kill [command]
```

## Subcommands

- [`agent`](https://docs.oz0.ai/reference/cli/oz0/kill/agent)
- [`list`](https://docs.oz0.ai/reference/cli/oz0/kill/list)
- [`release`](https://docs.oz0.ai/reference/cli/oz0/kill/release)
- [`tenant`](https://docs.oz0.ai/reference/cli/oz0/kill/tenant)
- [`tool`](https://docs.oz0.ai/reference/cli/oz0/kill/tool)

## Flags

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

<tbody>
  <tr>
    <td>
      <code>
        --tenant
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      the 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.
