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
|
|
|
|
|
2023-12-13 09:16:56 -05:00
|
|
|
Removes the specified configs from the Swarm.
|
2021-04-30 08:49:14 -04:00
|
|
|
|
|
|
|
For detailed information about using configs, refer to [store configuration data using Docker Configs](https://docs.docker.com/engine/swarm/configs/).
|
|
|
|
|
|
|
|
> **Note**
|
|
|
|
>
|
2023-12-13 09:16:56 -05:00
|
|
|
> This is a cluster management command, and must be executed on a Swarm
|
2021-04-30 08:49:14 -04:00
|
|
|
> 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**
|
|
|
|
>
|
2023-12-13 09:16:56 -05:00
|
|
|
> This command doesn't ask for confirmation before removing a config.
|
|
|
|
{ .warning }
|
2021-04-30 08:49:14 -04:00
|
|
|
|
|
|
|
## Related commands
|
|
|
|
|
|
|
|
* [config create](config_create.md)
|
|
|
|
* [config inspect](config_inspect.md)
|
|
|
|
* [config ls](config_ls.md)
|