tcb env apikey delete
Deletes the specified API key.
Usage
tcb env apikey delete <keyId> -e <envId>
Flags
| Flag | Required | Description | Default |
|---|---|---|---|
<keyId> | Yes | The API key ID to delete | — |
-e, --env-id <envId> | Yes | Environment ID | — |
--yes | No | Skip the confirmation prompt | — |
Example
# Delete an API key (interactive confirmation)
tcb env apikey delete key-xxxxxxxx -e env-xxx
# Skip confirmation and delete directly
tcb env apikey delete key-xxxxxxxx -e env-xxx --yes
# Output in JSON format
tcb env apikey delete key-xxxxxxxx -e env-xxx --yes --json
Tip
Use List API keys to view the available KeyIds.
Related commands
- Create an API key
- Command overview: key types and limits