github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/commands/operator/gossip/keyring-remove.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: 'Commands: operator gossip keyring remove'
     4  description: |
     5    Remove a new gossip encryption key
     6  ---
     7  
     8  # Command: operator gossip keyring remove
     9  
    10  The `operator gossip keyring remove` command removes the given key
    11  from the cluster. This operation may only be performed on keys which
    12  are not currently the primary key.
    13  
    14  This command can only be run against server nodes. It returns 0 if all nodes
    15  reply and there are no errors. If any node fails to reply or reports failure,
    16  the exit code will be 1.
    17  
    18  If ACLs are enabled, this command requires a token with the `agent:write`
    19  capability.
    20  
    21  ## Usage
    22  
    23  ```plaintext
    24  nomad operator gossip keyring remove [options] <key>
    25  ```
    26  
    27  ## General Options
    28  
    29  @include 'general_options_no_namespace.mdx'
    30  
    31  ## Examples
    32  
    33  ```shell-session
    34  $ nomad operator gossip keyring remove HD5Y61iE+neTxd1n6TnXhCPViPIUq5QpWq8WW8012XA=
    35  Removing gossip encryption key...
    36  error: Unexpected response code: 500 (3/3 nodes reported failure)
    37  
    38  $ nomad operator gossip keyring remove AOUfjGff+MrTBzNU7NCOTmYajKRkGv8r2ToxheWd+jk=
    39  Removing gossip encryption key...
    40  ```