Command 'detach-storage'

barrettj12
Mon, 01 May 2023 12:50:26 +0000

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.

Read full topic