github.com/olljanat/moby@v1.13.1/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  Removes the specified secrets from the swarm. This command has to be run
    31  targeting a manager node.
    32  
    33  This example removes a secret:
    34  
    35  ```bash
    36  $ docker secret rm secret.json
    37  sapth4csdo5b6wz2p5uimh5xg
    38  ```
    39  
    40  > **Warning**: Unlike `docker rm`, this command does not ask for confirmation
    41  > before removing a secret.
    42  
    43  
    44  ## Related information
    45  
    46  * [secret create](secret_create.md)
    47  * [secret inspect](secret_inspect.md)
    48  * [secret ls](secret_ls.md)