# registry remove

Remove a registry configuration

Canonical URL: https://docs.asterdoc.com/cli/commands/registry/remove/

Remove a registry configuration.

## Usage

```bash
asterdoc registry remove [namespace] [options]
asterdoc registry rm [namespace] [options]
```

## Arguments

| Argument    | Description                                                                 |
| ----------- | --------------------------------------------------------------------------- |
| `namespace` | Registry namespace to remove (optional; prompts for a selection if omitted) |

## Options

| Option      | Description                                          |
| ----------- | ---------------------------------------------------- |
| `--global`  | Remove from global config (\~/.asterdoc/config.json) |
| `--project` | Remove from project config (asterdoc.json)           |

## Description

Removes a registry from your configuration. Without a namespace, the command lists registries and lets you select one or more to remove. With `--global`, the list holds only the registries in the global config; with `--project`, only those in `asterdoc.json`. With neither, it lists every registry in effect.

With a namespace, if neither `--global` nor `--project` is specified, you will be prompted to choose. When not in a project directory, defaults to global config.

## Examples

```bash
asterdoc registry remove @acme
asterdoc registry rm @acme --global
asterdoc registry remove
asterdoc registry remove --global
```

## See also

* [registry add](/cli/commands/registry/add) - Add a registry
* [registry list](/cli/commands/registry/list) - List configured registries
