# aspire config delete command

## Name

`aspire config delete` - Delete a configuration value.

## Synopsis

```bash title="Aspire CLI"
aspire config delete <key> [options]
```

## Description

The `aspire config delete` command deletes a config value by key name.

<Include relativePath="reference/cli/includes/config-file-description.md" />

The command returns the following exit codes:

- `0`&mdash;The command succeeded.
- `1`&mdash;The supplied key doesn't exist in the config file, or the config file is missing.

## Arguments

The following arguments are available:

- **`key`**

  The configuration key to delete.

## Options

The following options are available:

- **`-g, --global`**

  Delete the configuration value from user-scoped global Aspire configuration
  instead of the rooted `aspire.config.json` file.

- <Include relativePath="reference/cli/includes/option-help.md" />

- <Include relativePath="reference/cli/includes/option-log-level.md" />

- <Include relativePath="reference/cli/includes/option-non-interactive.md" />

- <Include relativePath="reference/cli/includes/option-nologo.md" />

- <Include relativePath="reference/cli/includes/option-banner.md" />

- <Include relativePath="reference/cli/includes/option-wait.md" />