Skip to main content
DELETE
/
tyk
/
keys
/
{keyID}
Delete a key.
curl --request DELETE \
  --url https://{tenant}/tyk/keys/{keyID} \
  --header 'X-Tyk-Authorization: <api-key>'
{
  "action": "modified",
  "key": "b13d928b9972bd18",
  "key_hash": "<string>",
  "status": "ok"
}

Authorizations

X-Tyk-Authorization
string
header
required

Api key

Path Parameters

keyID
string
required

The key ID.

Query Parameters

hashed
enum<boolean>

Use the hash of the key as input instead of the full key.

Available options:
true,
false

Response

Key deleted.

action
string
Example:

"modified"

key
string
Example:

"b13d928b9972bd18"

key_hash
string
status
string
Example:

"ok"