Esc
ZeroIndex
GuidesAPI referenceSDKsChangelogOverviewBuy ZeroIndex

Delete a key

View as MarkdownThe page as plain text

Revoke a key. Requests made with it fail straight away.

DELETE/v1/keys/{uid}

Returns 204 No Content. Requires an admin key.

Path parameters

uidstringrequired

The id of the key, from List keys. Not the key itself.

Request

curl -X DELETE https://api.zeroindex.test/v1/keys/b3f1c9a2 \
  -H "Authorization: Bearer $ZEROINDEX_KEY"
await client.keys.delete("b3f1c9a2");
client.keys.delete("b3f1c9a2")