github.com/khulnasoft/cli@v0.0.0-20240402070845-01bcad7beefa/docs/reference/commandline/config_rm.md (about)

     1  # config rm
     2  
     3  <!---MARKER_GEN_START-->
     4  Remove one or more configs
     5  
     6  ### Aliases
     7  
     8  `docker config rm`, `docker config remove`
     9  
    10  
    11  <!---MARKER_GEN_END-->
    12  
    13  ## Description
    14  
    15  Removes the specified configs from the Swarm.
    16  
    17  For detailed information about using configs, refer to [store configuration data using Docker Configs](https://docs.docker.com/engine/swarm/configs/).
    18  
    19  > **Note**
    20  >
    21  > This is a cluster management command, and must be executed on a Swarm
    22  > manager node. To learn about managers and workers, refer to the
    23  > [Swarm mode section](https://docs.docker.com/engine/swarm/) in the
    24  > documentation.
    25  
    26  ## Examples
    27  
    28  This example removes a config:
    29  
    30  ```console
    31  $ docker config rm my_config
    32  sapth4csdo5b6wz2p5uimh5xg
    33  ```
    34  
    35  > **Warning**
    36  >
    37  > This command doesn't ask for confirmation before removing a config.
    38  { .warning }
    39  
    40  ## Related commands
    41  
    42  * [config create](config_create.md)
    43  * [config inspect](config_inspect.md)
    44  * [config ls](config_ls.md)