---
title: "ezgh keys schedule-deletion"
description: "Schedule a key's deletion."
---

> 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 keys schedule-deletion

{/* 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 keys schedule-deletion <key> [--pending-days n] [--yes] [flags]
```

Schedule a key's deletion, 7 to 30 days from now (30 unless `--pending-days` says otherwise). The key can't be used from now on, and `ezgh keys cancel-deletion` stops it until that date. After it, the key is destroyed: it can't be recovered, and nothing sealed under it can be opened. It asks first on a terminal; `--yes` confirms otherwise.

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

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--pending-days` | int | `30` | days until the key is destroyed, 7 to 30 |
| `-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/keys-schedule-deletion/index.mdx
