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": "deleted",
  "key": "5e9d9544a1dcd60001d0ed20e7f75f9e03534825b7aef9df749582e5",
  "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"