github.com/yogeshlonkar/moby@v1.13.2-0.20201203103638-c0b64beaea94/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  For detailed information about using secrets, refer to [manage sensitive data with Docker secrets](https://docs.docker.com/engine/swarm/secrets/).
    36  
    37  ## Examples
    38  
    39  This example removes a secret:
    40  
    41  ```bash
    42  $ docker secret rm secret.json
    43  sapth4csdo5b6wz2p5uimh5xg
    44  ```
    45  
    46  > **Warning**: Unlike `docker rm`, this command does not ask for confirmation
    47  > before removing a secret.
    48  
    49  
    50  ## Related commands
    51  
    52  * [secret create](secret_create.md)
    53  * [secret inspect](secret_inspect.md)
    54  * [secret ls](secret_ls.md)