2021-04-30 08:49:14 -04:00
|
|
|
# config rm
|
|
|
|
|
2023-01-06 13:04:05 -05:00
|
|
|
<!---MARKER_GEN_START-->
|
2021-04-30 08:49:14 -04:00
|
|
|
Remove one or more configs
|
|
|
|
|
2023-01-06 13:04:05 -05:00
|
|
|
### Aliases
|
2021-04-30 08:49:14 -04:00
|
|
|
|
2023-01-06 13:04:05 -05:00
|
|
|
`docker config rm`, `docker config remove`
|
|
|
|
|
|
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
2021-04-30 08:49:14 -04:00
|
|
|
|
|
|
|
## Description
|
|
|
|
|
|
|
|
Removes the specified configs from the swarm.
|
|
|
|
|
|
|
|
For detailed information about using configs, refer to [store configuration data using Docker Configs](https://docs.docker.com/engine/swarm/configs/).
|
|
|
|
|
|
|
|
> **Note**
|
|
|
|
>
|
|
|
|
> This is a cluster management command, and must be executed on a swarm
|
|
|
|
> manager node. To learn about managers and workers, refer to the
|
|
|
|
> [Swarm mode section](https://docs.docker.com/engine/swarm/) in the
|
|
|
|
> documentation.
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
This example removes a config:
|
|
|
|
|
2021-08-21 08:54:14 -04:00
|
|
|
```console
|
2021-04-30 08:49:14 -04:00
|
|
|
$ docker config rm my_config
|
|
|
|
sapth4csdo5b6wz2p5uimh5xg
|
|
|
|
```
|
|
|
|
|
|
|
|
> **Warning**
|
|
|
|
>
|
|
|
|
> Unlike `docker rm`, this command does not ask for confirmation before removing
|
|
|
|
> a config.
|
|
|
|
|
|
|
|
|
|
|
|
## Related commands
|
|
|
|
|
|
|
|
* [config create](config_create.md)
|
|
|
|
* [config inspect](config_inspect.md)
|
|
|
|
* [config ls](config_ls.md)
|