---
title: "Delete a key."
method: DELETE
path: "/tyk/keys/{keyID}"
tags: ["Keys"]
---

# Delete a key.

`DELETE /tyk/keys/{keyID}`

Deleting a key will remove it permanently from the system, however analytics relating to that key will still be available.

## Path parameters

- `keyID` string, required

## Query parameters

- `hashed` boolean

## Response `200`

Key deleted.

- ApiModifyKeySuccess
  - `action` string
  - `key` string
  - `key_hash` string
  - `status` string

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Key not found.

## Changes

- **2025-11-13** `59da626fc82d` — 2 breaking
  - removed the enum value `false` from the `query` request parameter `hashed`
  - removed the enum value `true` from the `query` request parameter `hashed`
- **2024-09-18** `111affa17abe` — 1 breaking, 1 warning, 7 info
  - added the new path request parameter `keyID`
  - removed the optional property `message` from the response with the `200` status
  - added the new optional `query` request parameter `hashed`
  - added the non-success response with the status `400`
  - …5 more
- **2023-02-22** `86627aee8b60` — 1 info
  - added the new optional `query` request parameter `hashed` to all path's operations
- **2022-05-24** `111d8ca21864` — 5 warning, 4 info
  - deleted the `path` request parameter `keyID`
  - deleted the `query` request parameter `hashed`
  - removed the optional property `action` from the response with the `200` status
  - removed the optional property `key` from the response with the `200` status
  - …5 more

[Change history](https://skmtc.dev/tyktechnologies/apis/tyk-gateway-api/changes/tyk/keys/:keyID/delete.md)

---

[API](https://skmtc.dev/tyktechnologies/apis/tyk-gateway-api.md) · [All operations](https://skmtc.dev/tyktechnologies/apis/tyk-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tyktechnologies/tyk-gateway-api/revisions/900d0a33ae1d/schema)
