---
title: "DELETE /tyk/keys/{keyId}"
method: DELETE
path: "/tyk/keys/{keyId}"
---

# DELETE /tyk/keys/{keyId}

`DELETE /tyk/keys/{keyId}`

Remove this *API token* from the gateway, this will completely destroy the token and metadata associated with the token and instantly stop access from being granted

## Path parameters

- `keyId` string, required

## Query parameters

- `api_id` string, string, required

## Headers

- `x-tyk-authorization` string, string, required

## Response `200`

Key Deleted Response

## Changes

- **2016-02-19** `f48fc3ed1f02` — 1 breaking
  - added the new required `header` request parameter `x-tyk-authorization`
- **2016-02-19** `46e2c53ea40f` — 1 warning
  - deleted the `header` request parameter `x-tyk-authorization`

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

---

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