Skip to main content

Synopsis

Delete one or more API keys for a service account, or your own personal API keys. This permanently deletes the API key(s) identified by KEY-ID. Deletion is immediate and cannot be undone. You are asked to confirm before the key is deleted; use --assume-yes/--yes to skip the confirmation prompt. When stdin is not interactive (e.g. in CI) the prompt cannot be answered and the command fails without deleting anything, so pass --assume-yes there. Deleting a key also deletes every key that was created with it. With --personal and an API key as --api-token, you can delete only that key and keys created with it.

Flags

Flags inherited from parent commands

Examples Use Cases

These examples all assume that the flags --api-token, --org, --host, (and --flow, --trail when required), are set/provided.
Last modified on October 29, 2026