Command 'juju detach-storage'

The information in this doc is based on Juju version 3.5.5, and may not accurately reflect other versions of Juju.

See also: storage, attach-storage

Summary

Detaches storage from units.

Usage

juju detach-storage [options] <storage> [<storage> ...]

Options

Flag Default Usage
-B, --no-browser-login false Do not use web browser for authentication
--force false Forcefully detach storage
-m, --model Model to operate in. Accepts [<controller name>:]<model name>|<model UUID>

Examples

juju detach-storage pgdata/0
juju detach-storage --force pgdata/0

Details

Detaches storage from units. Specify one or more unit/application storage IDs, as output by “juju storage”. The storage will remain in the model until it is removed by an operator.

Detaching storage may fail but under some circumstances, Juju user may need to force storage detachment despite operational errors.