---
name: metabase_deactivate_user
kind: function
lang: py
domain: infra
version: "1.0.0"
purity: impure
signature: "def metabase_deactivate_user(client: MetabaseClient, user_id: int) -> None"
description: "Desactiva (soft-delete) un usuario en Metabase. Reactivar con PUT /api/user/:id/reactivate. Endpoint: DELETE /api/user/:id."
tags: [metabase, user, delete, deactivate, api, python]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: "error_go_core"
imports: [httpx]
params:
  - name: client
    desc: "instancia autenticada de MetabaseClient"
  - name: user_id
    desc: "ID del usuario a desactivar"
output: "None"
tested: false
tests: []
test_file_path: ""
file_path: "python/functions/metabase/users.py"
---

## Ejemplo

```python
metabase_deactivate_user(client, 5)
```

## Notas

Soft-delete. El usuario se puede reactivar.
