> ## 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.

# 移除目标地址

> 从您的 PCI Proxy 允许列表中移除第三方主机。立即生效。

通过 `id`（来自[列出目标地址](https://docs.y.uno/zh-hans/reference/pci-proxy/list-destinations.md)）从您账户的目标地址允许列表中移除主机。移除立即生效：之后发往该主机的下一个[转发代理](https://docs.y.uno/zh-hans/reference/pci-proxy/invoke-forward-proxy.md)请求会被拒绝并返回 `403 DESTINATION_NOT_ALLOWED`。请参阅[目标地址允许列表指南](https://docs.y.uno/zh-hans/docs/security-and-compliance/pci-proxy/allowlist.md)。


## OpenAPI

````yaml openapi/zh-hans/pci-proxy/manage-destinations.json DELETE /pci-proxy/destinations/{id}
openapi: 3.1.0
info:
  title: pci-proxy-manage-destinations
  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:
  /pci-proxy/destinations/{id}:
    delete:
      summary: 移除目标
      description: >-
        从您账户的允许列表中移除主机。该操作立即生效：之后对该主机的下一个代理请求会被拒绝并返回 `403
        DESTINATION_NOT_ALLOWED`。
      operationId: removePciProxyDestination
      parameters:
        - name: id
          in: path
          required: true
          description: >-
            要移除的目标的
            `id`（UUID），与[列出目标](/zh-hans/reference/pci-proxy/list-destinations)返回的一致。
          schema:
            type: string
            format: uuid
            example: d7e8f9a0-1234-4b5c-8d6e-7f8091a2b3c4
        - in: header
          name: X-Account-Code
          required: false
          schema:
            type: string
            format: uuid
          description: 如果目标是使用 `account_id` 注册的，则必填：传入相同的 `account_id`。不传时，限定账户的目标会被视为未找到。
      responses:
        '204':
          description: 目标已移除。没有响应正文。
        '400':
          description: '`id` 路径参数不是有效的 UUID。'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DestinationError'
              examples:
                Invalid id:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - invalid id
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: 您的账户下没有注册带有该 `id` 的目标。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DestinationError'
              examples:
                Not found:
                  value:
                    code: NOT_FOUND
                    messages:
                      - destination not found
components:
  schemas:
    DestinationError:
      type: object
      properties:
        code:
          type: string
          description: 机器可读的错误代码。
          enum:
            - NOT_AUTHENTICATED
            - AuthenticationFail
            - INVALID_REQUEST
            - INVALID_HOSTNAME
            - INVALID_ACCOUNT_ID
            - DESTINATION_EXISTS
            - NOT_FOUND
            - INTERNAL_ERROR
        messages:
          type: array
          items:
            type: string
  responses:
    Unauthorized:
      description: 身份验证失败。缺少 API 凭证或 API 凭证无效。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/DestinationError'
          examples:
            Not authenticated:
              value:
                code: NOT_AUTHENTICATED
                messages:
                  - not authenticated
  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.