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

# Delete API Key IP Access Policy

Clear the IP access policy of a single API key, restoring it to no source-IP restriction. After clearing, any source IP can use the key to invoke models.

## Permissions

| Role          | Access                                                     |
| :------------ | :--------------------------------------------------------- |
| Owner / Admin | Can clear the IP access policy of any API key in the team. |
| Developer     | Can clear only keys they own.                              |
| Basic         | Cannot clear.                                              |
| Billing       | Cannot clear.                                              |

The target API key must belong to the caller's team. When clearing a key that the caller has no permission for or that does not belong to the team, the endpoint does not reveal whether the target key exists and returns a permission error uniformly.

## Request Headers

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format, for example: Bearer \{\{API Key}}.
</ParamField>

## Path Parameters

<ParamField path="stringId" type="string" required={true}>
  The stringId of the target API key.
</ParamField>

## Response

Returns an empty object on success.

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

<ResponseExample>
  ```json 200 theme={"system"}
  {}
  ```
</ResponseExample>
