---
title: "ezgh deploy resources delete"
description: "Delete a managed resource."
---

> 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 deploy resources delete

{/* 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 deploy resources delete <key> [--confirm <environment>/<key>] [flags]
```

Delete a resource the environment manages, as a deployment; prints its ID. You confirm by typing &lt;environment&gt;/&lt;key&gt; (or passing it as `--confirm`), and you need the product's delete right on the resource.

Part of [`ezgh deploy resources`](/cli/reference/deploy-resources).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--confirm` | string |  | &lt;environment&gt;/&lt;key&gt;, the resource being deleted, instead of typing it |

Inherited from parent commands:

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--dir` | string | `.` | the repository's checkout (any directory inside it) |
| `--environment` | string |  | the environment, by ID (den\_…) or name (default: the stack's environment for the checked-out branch) |
| `--json` | boolean |  | print JSON, as -o json does |
| `--stack` | string |  | the stack, by ID (dps\_…) or name (default: the checkout's EZGHDeploy name) |

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

Source: https://docs.ezghcloud.com/cli/reference/deploy-resources-delete/index.mdx
