# Delete account alias

Delete account alias.

## Usage

```bash
tkm org accounts delete-alias \
  --account-id <account-id>
```

## Positional arguments

This command has no positional arguments.

## Options

In addition to the [common options](https://docs.takomo.io/command-line-usage/common-options), this command has the following options.

* `--account-id <account id>`
  * Account id. Required.

## IAM permissions

These are the minimum IAM permissions required to run this command.

```yaml
# Permission needed to assume a role from the target account
# used to delete the account alias.
Statement:
  - Effect: Allow
    Action: sts:AssumeRole
    Resource: "*"
```

The role in the target account must have the following permissions.

```yaml
Statement:
  - Effect: Allow
    Action:
      - iam:DeleteAccountAlias
      - iam:ListAccountAliases
    Resource: "*"
```

## Examples

Delete account alias:

```bash
tkm org accounts delete-alias --account-id 123456789012
```
