---
title: "Delete an ingestion key"
method: DELETE
path: "/projects/{project_id}/ingestion_keys/{ingestion_key_id}"
tags: ["Ingestion keys"]
---

# Delete an ingestion key

`DELETE /projects/{project_id}/ingestion_keys/{ingestion_key_id}`

## Request

- Base URL: `https://app.honeybadger.io/v3`
- URL: `https://app.honeybadger.io/v3/projects/{project_id}/ingestion_keys/{ingestion_key_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/honeybadger/apis/honeybadger-api/docs/projects/:project_id/ingestion_keys/:ingestion_key_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes an ingestion key. A project's last key can't be deleted.

## Path parameters

- `project_id` string, required
- `ingestion_key_id` string, required

## Response `204`

Key deleted

## Other responses

- `401`: The credential is missing, invalid, expired or revoked (`unauthorized`), or was sent in a way v3 doesn't accept (see the examples).
- `403`: The credential isn't allowed to do this. `error.code` says why. An account or project the credential doesn't cover is 404 `not_found`, not 403.
- `404`: Resource not found
- `422`: Validation error

---

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