github.com/fabiokung/docker@v0.11.2-0.20170222101415-4534dcd49497/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  <!-- This file is maintained within the docker/docker Github
     8       repository at https://github.com/docker/docker/. Make all
     9       pull requests against that repo. If you see this file in
    10       another repository, consider it read-only there, as it will
    11       periodically be overwritten by the definitive file. Pull
    12       requests which include edits to this file in other repositories
    13       will be rejected.
    14  -->
    15  
    16  # secret rm
    17  
    18  ```Markdown
    19  Usage:	docker secret rm SECRET [SECRET...]
    20  
    21  Remove one or more secrets
    22  
    23  Aliases:
    24    rm, remove
    25  
    26  Options:
    27        --help   Print usage
    28  ```
    29  
    30  ## Description
    31  
    32  Removes the specified secrets from the swarm. This command has to be run
    33  targeting a manager node.
    34  
    35  ## Examples
    36  
    37  This example removes a secret:
    38  
    39  ```bash
    40  $ docker secret rm secret.json
    41  sapth4csdo5b6wz2p5uimh5xg
    42  ```
    43  
    44  > **Warning**: Unlike `docker rm`, this command does not ask for confirmation
    45  > before removing a secret.
    46  
    47  
    48  ## Related commands
    49  
    50  * [secret create](secret_create.md)
    51  * [secret inspect](secret_inspect.md)
    52  * [secret ls](secret_ls.md)