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

# 清除 API Key 网络访问策略

清除单个 API Key 的网络访问策略，恢复为不限制来源 IP。清除后，任意来源 IP 均可使用该 Key 调用模型。

## 权限

| 角色            | 是否可清除                     |
| :------------ | :------------------------ |
| Owner / Admin | 可清除团队内任意 API Key 的网络访问策略。 |
| Developer     | 只能清除自己创建的 API Key。        |
| 基础用户          | 不可清除。                     |
| 财务管理员         | 不可清除。                     |

被清除的 API Key 必须属于当前调用方所在的团队。清除无权限或不属于本团队的 Key 时，接口不会暴露目标 Key 是否存在，一律按无权限处理。

## 请求头

<ParamField header="Authorization" type="string" required={true}>
  Bearer 身份验证格式，例如：Bearer \{\{API 密钥}}。
</ParamField>

## 路径参数

<ParamField path="stringId" type="string" required={true}>
  目标 API Key 的 stringId。
</ParamField>

## 响应

清除成功返回空对象。

<RequestExample>
  ```bash theme={null}
  curl --request DELETE \
    --url https://api.ppio.com/openapi/v2/user/key/<stringId>/ip-access-policy \
    --header 'Authorization: Bearer <API_KEY>'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {}
  ```
</ResponseExample>
