---
title: "ktm users deactivate"
description: "Deactivate a user account"
sidebarTitle: "deactivate"
lastUpdated: "2026-09-23"
---

> **For AI agents:** the complete documentation index is at [llms.txt](/llms.txt). Append `.md` to any page URL for its markdown version.

{/* GENERATED FILE: do not edit by hand. Regenerate with: node scripts/generate.mjs */}

Deactivate a user account

## Usage

```bash
ktm users deactivate [flags]
```

## Examples

```bash
# Deactivate user with ID 42
ktm users deactivate --id 42
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--id` | int |  | User ID to deactivate (from 'users list') |

## Details

Deactivate a user account by ID. Requires superadmin or EDIT_OPERATOR_ADMIN permission.

Use 'users list' to find user IDs.

## Related

- [`ktm users`](/cli/commands/users)
- [`ktm users list`](/cli/commands/users/list)

<Note>
  Global flags (`--output`, `--debug`, `--host`, …) apply to every command. See the [command reference overview](/cli/commands/overview).
</Note>

## What's next?

<Columns cols={2}>
  <Card title="All commands" icon="terminal" href="/cli/commands/overview">
    Browse the full CLI reference.
  </Card>
  <Card title="Get started" icon="rocket" href="/cli/getting-started">
    Install the CLI and authenticate.
  </Card>
</Columns>
