

# Deleting an account alias
<a name="account-alias-delete"></a>

To perform the following steps, you must have at least the following IAM permissions:
+ `iam:ListAccountAliases`
+ `iam:DeleteAccountAlias`

## To delete an account alias
<a name="console-account-alias-section-2"></a>

------
#### [ Console ]

1. Sign in to the Amazon Web Services Management Console and open the IAM console at [https://console.amazonaws.cn/iam/](https://console.amazonaws.cn/iam/).

1. In the navigation pane, choose **Dashboard**.

1. In the **Amazon Account** section, next to **Account Alias**, choose **Delete**. 

------
#### [ Amazon CLI ]

To delete an Amazon Web Services account ID alias, run the following command:
+ `[aws iam delete-account-alias](https://docs.amazonaws.cn/cli/latest/reference/iam/delete-account-alias.html)`

To confirm that the account alias is deleted, attempt to display your Amazon Web Services account ID alias, by running the following command: 
+ `[aws iam list-account-aliases](https://docs.amazonaws.cn/cli/latest/reference/iam/list-account-aliases.html)`

------
#### [ API ]

To delete an Amazon Web Services account ID alias, call the following operation:
+ `[DeleteAccountAlias](https://docs.amazonaws.cn/IAM/latest/APIReference/API_DeleteAccountAlias.html)` 

To confirm that the account alias is deleted attempt to display your Amazon Web Services account ID alias, by calling the following operation:
+ `[ListAccountAliases](https://docs.amazonaws.cn/IAM/latest/APIReference/API_ListAccountAliases.html)` 

------

**Note**  
After deleting your account alias, the only sign-in URL for your account is based off your account ID. Any attempts to connect to the alias URL will fail and are not redirected.