The information in this doc is based on Juju version 3.5.6, and may not accurately reflect other versions of Juju.
See also: add-credential, autoload-credentials, credentials, default-credential, set-credential, update-credential
Summary
Removes Juju credentials for a cloud.
Usage
juju remove-credential [options] <cloud name> <credential name>
Options
Flag | Default | Usage |
---|---|---|
-B , --no-browser-login |
false | Do not use web browser for authentication |
-c , --controller |
Controller to operate in | |
--client |
false | Client operation |
--force |
false | Force remove controller side credential, ignore validation errors |
Examples
juju remove-credential google credential_name
juju remove-credential google credential_name --client
juju remove-credential google credential_name -c mycontroller
juju remove-credential google credential_name -c mycontroller --force
Details
The credential to be removed is specified by a “credential name”.
Credential names, and optionally the corresponding authentication
material, can be listed with juju credentials
.
Use --controller option to remove credentials from a controller.
When removing cloud credential from a controller, Juju performs additional checks to ensure that there are no models using this credential. Occasionally, these check may not be desired by the user and can be by-passed using --force. If force remove was performed and some models were still using the credential, these models will be left with un-reachable machines. Consequently, it is not recommended as a default remove action. Models with un-reachable machines are most commonly fixed by using another cloud credential, see ’ + “‘juju set-credential’” + ’ for more information.
Use --client option to remove credentials from the current client.