| title | harbor context delete |
|---|---|
| weight | 85 |
Clear the value of a specific CLI config item by setting it to its zero value. Case-insensitive field lookup, but uses the canonical (Go) field name internally. If you specify --name, that credential (rather than the "current" one) will be used.
harbor context delete <item> [flags] # Clear the current credential's password
harbor context delete credentials.password
# Clear a specific credential's password using --name
harbor context delete credentials.password --name admin@http://demo.goharbor.io
# Clear the current credential
harbor context delete --current
--current Remove current credentials from the config
-h, --help help for delete
-n, --name string Name of the credential to delete fields from (default: the current credential) -c, --config string config file (default is $HOME/.config/harbor-cli/config.yaml)
-l, --log-format string Output format for logging. One of: json|text (default "text")
-o, --output-format string Output format. One of: json|yaml
-v, --verbose verbose output- harbor context - Manage locally available contexts