---
title: "Remove an existing API key for a private location"
method: DELETE
path: "/v1/private-locations/{id}/keys/{keyId}"
tags: ["Private locations"]
---

# Remove an existing API key for a private location

`DELETE /v1/private-locations/{id}/keys/{keyId}`

## Request

- Base URL: `https://api.checklyhq.com`
- URL: `https://api.checklyhq.com/v1/private-locations/{id}/keys/{keyId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/checklyhq/apis/checkly-public-api/docs/v1/private-locations/:id/keys/:keyId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Permanently removes an api key from a private location.

## Path parameters

- `id` string, required
- `keyId` string, required

## Headers

- `x-checkly-account` string: Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general

## Response `204`

No Content

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too Many Requests

## Changes

- **2026-10-31** `bc90d1bfa738`: 1 info
  - added the optional property `errorCode` to the response with the `403` status

[Operation history](https://skmtc.dev/checklyhq/apis/checkly-public-api/changes/v1/private-locations/:id/keys/:keyId/delete.md)

---

[API](https://skmtc.dev/checklyhq/apis/checkly-public-api.md) - [All operations](https://skmtc.dev/checklyhq/apis/checkly-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/checklyhq/apis/checkly-public-api/revisions/bc90d1bfa738?raw)
