<a id="command-juju-remove-storage"></a>

# `juju remove-storage`

> See also: [add-storage](https://documentation.ubuntu.com/juju/4.0/reference/juju-cli/list-of-juju-cli-commands/add-storage.md#command-juju-add-storage), [attach-storage](https://documentation.ubuntu.com/juju/4.0/reference/juju-cli/list-of-juju-cli-commands/attach-storage.md#command-juju-attach-storage), [detach-storage](https://documentation.ubuntu.com/juju/4.0/reference/juju-cli/list-of-juju-cli-commands/detach-storage.md#command-juju-detach-storage), [show-storage](https://documentation.ubuntu.com/juju/4.0/reference/juju-cli/list-of-juju-cli-commands/show-storage.md#command-juju-show-storage), [storage](https://documentation.ubuntu.com/juju/4.0/reference/juju-cli/list-of-juju-cli-commands/storage.md#command-juju-storage)

## Summary

Removes storage from the model.

## Usage

```text
juju remove-storage [options] <storage> [<storage> ...]
```

### Options

| Flag                       | Default   | Usage                                                                      |
|----------------------------|-----------|----------------------------------------------------------------------------|
| `-B`, `--no-browser-login` | false     | Do not use web browser for authentication                                  |
| `--force`                  | false     | Remove storage even if it is currently attached                            |
| `-m`, `--model`            |           | Model to operate in. Accepts [<controller name>:]<model name>|<model UUID> |
| `--no-destroy`             | false     | Remove the storage without destroying it                                   |

## Examples

Remove the detached storage `pgdata/0`:

```none
juju remove-storage pgdata/0
```

Remove the possibly attached storage `pgdata/0`:

```none
juju remove-storage --force pgdata/0
```

Remove the storage `pgdata/0`, without destroying
the corresponding cloud storage:

```none
juju remove-storage --no-destroy pgdata/0
```

## Details

Removes storage from the model. Specify one or more
storage IDs, as output by `juju storage`.

By default, `remove-storage` will fail if the storage
is attached to any units. To override this behaviour,
you can use `juju remove-storage --force`.
Note: Forced detach is not available on container models.
