# Delete a mailing list alias

Deletes a mailing list alias.

## Request

Facts | &nbsp;
---|---
HTTP URL | https://open.feishu.cn/open-apis/mail/v1/mailgroups/:mailgroup_id/aliases/:alias_id
HTTP Method | DELETE
Rate Limit | [1000 per minute & 50 per second](https://open.feishu.cn/document/ukTMukTMukTM/uUzN04SN3QjL1cDN)
Supported app types | Custom App
Required scopes<br>**To use this API, you must have at least 1 of the listed scopes.** | Search, create, manage, and delete mailing lists(mail:mailgroup)

### Request header

Parameter | Type | Required | Description
---|---|---|---
Authorization | string | Yes | `tenant_access_token`<br>**Value format**: "Bearer `access_token`"<br>**Example value**: "Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>[How to choose and get access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use)

### Path parameters

Parameter | Type | Description
---|---|---
mailgroup_id | string | Mailing list ID or mailing list address<br>**Example value**: "xxxxxx or test_group@xx.xxx"
alias_id | string | Mailing list alias email address<br>**Example value**: "xxx@xx.xxx"

## Response

### Response body

Parameter | Type | Description
---|---|---
code | int | Error codes, fail if not zero
msg | string | Error descriptions
data | \- | \-

### Response body example
```json
{
    "code": 0,
    "msg": "success",
    "data": {}
}
```

### Error code

HTTP status code | Error code | Description | Troubleshooting suggestions
---|---|---|---
404 | 1234013 | mail group not found | Check whether the mailing list exists.
404 | 1234012 | alias not found | Alias address does not exist.
400 | 1234008 | request parameter error | Check whether the request parameters are correct.

