<a id="command-juju-remove-credential"></a>

# `juju remove-credential`

> See also: [add-credential](https://documentation.ubuntu.com/juju/4.0/reference/juju-cli/list-of-juju-cli-commands/add-credential.md#command-juju-add-credential), [autoload-credentials](https://documentation.ubuntu.com/juju/4.0/reference/juju-cli/list-of-juju-cli-commands/autoload-credentials.md#command-juju-autoload-credentials), [credentials](https://documentation.ubuntu.com/juju/4.0/reference/juju-cli/list-of-juju-cli-commands/credentials.md#command-juju-credentials), [default-credential](https://documentation.ubuntu.com/juju/4.0/reference/juju-cli/list-of-juju-cli-commands/default-credential.md#command-juju-default-credential), [set-credential](https://documentation.ubuntu.com/juju/4.0/reference/juju-cli/list-of-juju-cli-commands/set-credential.md#command-juju-set-credential), [update-credential](https://documentation.ubuntu.com/juju/4.0/reference/juju-cli/list-of-juju-cli-commands/update-credential.md#command-juju-update-credential)

## Summary

Removes Juju credentials for a cloud.

## Usage

```text
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

```none
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 the `--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 unreachable machines.
Consequently, it is not recommended as a default remove action.
Models with unreachable machines are most commonly fixed by using another cloud credential,
see `juju set-credential` for more information.

Use the `--client` option to remove credentials from the current client.
