Skip to main content
Delete an API key you own. Once deleted, the key stops authenticating the Public API immediately and cannot be recovered. Find the id with clay api-keys list.
clay api-keys delete <apiKeyId>

Arguments

ArgumentDescription
apiKeyIdAPI key id, e.g. the id returned by clay api-keys list.

Output

{ "ok": true }
FieldTypeDescription
oktrueAlways true on success.

Errors

CodeExitNotes
not_found6No API key with that id found.
auth_forbidden3You do not have permission to manage API keys.

Examples

clay api-keys delete ak_abc123
clay api-keys list | jq -r '.data[0].id' | xargs clay api-keys delete