> ## Documentation Index
> Fetch the complete documentation index at: https://docs.y.uno/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# 从组中移除账户

> 将账户从账户组中分离，而不删除该账户

> [!WARNING]
>
> 此 endpoint 尚未通过公共 API 提供。目前调用会返回 `404 NOT_FOUND`。本页描述的是预期行为。

将账户从账户组中分离。该账户不会被删除或停用，而是成为您组织的独立账户，之后可以附加到另一个组。一个组必须始终保留至少一个账户，因此无法通过这种方式移除最后一个账户；请将其移到另一个组，或者删除该账户。


## OpenAPI

````yaml openapi/zh-hans/organizations/remove-account-from-group.json DELETE /organizations/account-groups/{account_group_id}/accounts/{account_id}
openapi: 3.1.0
info:
  title: Account Groups API - Remove Account
  version: 1.0.0
servers:
  - url: https://api-sandbox.y.uno/v1
    description: Sandbox
  - url: https://api.y.uno/v1
    description: Production (US)
security:
  - sec0: []
    sec1: []
paths:
  /organizations/account-groups/{account_group_id}/accounts/{account_id}:
    delete:
      summary: 从组中移除账户
      description: >-
        将账户从账户组中分离。账户本身不会被删除或停用：它保留其用户、权限和配置，成为组织中一个独立的账户，之后可通过创建账户将其附加到其他组。一个组必须始终至少保留一个账户，因此无法通过这种方式移除组内最后一个账户：请将其移入其他组（使用创建账户组时的
        `account_codes`），或改为删除该账户。
      operationId: remove-account-from-group
      parameters:
        - name: account_group_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: 账户组 UUID。
        - name: account_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: 要分离的账户的 UUID。它当前必须属于此组。
      responses:
        '204':
          description: 无内容：账户已从组中分离。
        '400':
          description: 请求错误：`LAST_ACCOUNT_IN_GROUP`，该账户是组内仅剩的一个账户。一个组必须至少包含一个账户。
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: 机器可读的错误代码。
                  messages:
                    type: array
                    items:
                      type: string
                    description: 人类可读的详细信息。
              example:
                code: LAST_ACCOUNT_IN_GROUP
                messages:
                  - A group must contain at least one account
        '404':
          description: 未找到：此组织中不存在该账户组，或该账户不是此组的成员。
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: PUBLIC-API-KEY
      x-default: <Your PUBLIC-API-KEY>
    sec1:
      type: apiKey
      in: header
      name: PRIVATE-SECRET-KEY
      x-default: <Your PRIVATE-SECRET-KEY>

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.