---
title: "ezgh flags keys revoke"
description: "Revoke an SDK key."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh flags keys revoke

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh flags keys revoke <key> --env <environment> [flags]
```

Revoke an environment's SDK key, by ID, prefix or name: it stops working within seconds, its open streams end, and apps using it fall back to their defaults. It can't be undone. It asks first on a terminal; `--yes` confirms otherwise.

Part of [`ezgh flags keys`](/cli/reference/flags-keys).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--env` | string |  | the environment's key (required) |
| `-y`, `--yes` | boolean |  | don't ask for confirmation |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/flags-keys-revoke/index.mdx
