github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/cli/docs/reference/commandline/secret_rm.md (about)

     1  ---
     2  title: "secret rm"
     3  description: "The secret rm command description and usage"
     4  keywords: ["secret, rm"]
     5  ---
     6  
     7  # secret rm
     8  
     9  ```Markdown
    10  Usage:  docker secret rm SECRET [SECRET...]
    11  
    12  Remove one or more secrets
    13  
    14  Aliases:
    15    rm, remove
    16  
    17  Options:
    18        --help   Print usage
    19  ```
    20  
    21  ## Description
    22  
    23  Removes the specified secrets from the swarm.
    24  
    25  For detailed information about using secrets, refer to [manage sensitive data with Docker secrets](https://docs.docker.com/engine/swarm/secrets/).
    26  
    27  > **Note**
    28  >
    29  > This is a cluster management command, and must be executed on a swarm
    30  > manager node. To learn about managers and workers, refer to the
    31  > [Swarm mode section](https://docs.docker.com/engine/swarm/) in the
    32  > documentation.
    33  
    34  ## Examples
    35  
    36  This example removes a secret:
    37  
    38  ```bash
    39  $ docker secret rm secret.json
    40  sapth4csdo5b6wz2p5uimh5xg
    41  ```
    42  
    43  > **Warning**
    44  >
    45  > Unlike `docker rm`, this command does not ask for confirmation before removing
    46  > a secret.
    47  
    48  
    49  ## Related commands
    50  
    51  * [secret create](secret_create.md)
    52  * [secret inspect](secret_inspect.md)
    53  * [secret ls](secret_ls.md)