---
title: "Remove account"
locale: en
url: https://tlg.builera.app/en/docs/reference/rest/accounts.remove
verified: 2026-10-24
app_version: "2.0"
generated: true
---

# Remove account

Remove the account: logs out of Telegram (when possible), frees the proxy; history is kept 30 days. The result says whether the Telegram logout is still pending.

Remove the account: logs out of Telegram (when possible), frees the proxy; history is kept 30 days. The result says whether the Telegram logout is still pending.

## Overview

| Name | Value |
| --- | --- |
| Code | `accounts.remove` |
| Scope needed | `accounts.manage` |
| Risk | Dangerous |
| May need confirmation | Yes |
| Runs as | Answers right away |
| Needs `Idempotency-Key` | No |
| Member roles allowed | `owner`, `manager` |
| In the app | Accounts → Remove |

## Input fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `accountId` | `uuid` | Yes |   |

## Example request

```bash
curl -X POST https://tlg.builera.app/api/public/v2/ops/accounts.remove \
  -H "Authorization: Bearer $TELEGRAM_AUTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"accountId":"00000000-0000-0000-0000-000000000000"}'
```

## Output fields (`data`)

| Field | Type | Required |
| --- | --- | --- |
| `ok` | `true` | Yes |
| `pending` | `true/false` | Yes |
| `telegramLogout` | `"queued" \| "not_needed" \| "not_queued"` | Yes |

## Example answer

```json
{
  "data": {
    "ok": true,
    "pending": true,
    "telegramLogout": "queued"
  }
}
```

## Using it over MCP

Not listed on any profile: call `tools_describe` then `tools_run` with `code: "accounts.remove"`. Tool name when listed: `accounts_remove`.
