unregister-host

Unregister a host.

Usage

Delete a host from the state file. This command will not connect to the host or
perform any operations on the nodes there.

Usage:
  memsql-toolbox-config unregister-host [flags]

Flags:
  -a, --all           unregister all hosts
  -h, --help          help for unregister-host
      --host string   the host to unregister

Global Flags:
  -c, --config FILE_PATH             the Toolbox configuration file path
  -j, --json                         Enable JSON output
      --runtime-dir DIRECTORY_PATH   where to put Toolbox runtime data
      --state-file FILE_PATH         the Toolbox state file path
  -v, --verbosity count              Increase logging verbosity
  -y, --yes                          Enable non-interactive mode and assume the user would like to move forward with the proposed actions by default

Remarks

This command is interactive unless you use either the --yes or --json flags to override interactive behavior.

Output

The following example uses the unregister-host command to unregister the local host machine.

memsql-toolbox-config unregister-host --host node-1
Toolbox is about to unregister the following host:
  · Host: node-1
  · Localhost: true

Would you like to continue? [y/N]: y
✓ Successfully unregistered host node-1
+----------------+------------+-------------+---------------+
|      Host      | Local Host | SSH address | Identity File |
+----------------+------------+-------------+---------------+
| node-1         | Yes        |             |               |
+----------------+------------+-------------+---------------+
Was this article useful?