

# 从 Amazon RDS 事件通知订阅中删除源标识符
<a name="USER_Events.RemovingSource"></a>

如果您不再希望收到源的事件通知，可以从订阅中删除源标识符 (生成事件的 Amazon RDS 源)。

## 控制台
<a name="USER_Events.RemovingSource.Console"></a>

您可以使用 Amazon RDS 控制台在修改订阅时通过选择或者取消选择操作轻松地添加或删除源标识符。有关更多信息，请参阅“[修改 Amazon RDS 事件通知订阅](USER_Events.Modifying.md)”。

## AWS CLI
<a name="USER_Events.RemovingSource.CLI"></a>

要从 Amazon RDS 事件通知订阅删除源标识符，请使用 AWS CLI [https://docs.aws.amazon.com/cli/latest/reference/rds/remove-source-identifier-from-subscription.html](https://docs.aws.amazon.com/cli/latest/reference/rds/remove-source-identifier-from-subscription.html) 命令。包括以下必需参数：
+ `--subscription-name`
+ `--source-identifier`

**Example**  
以下示例将从 `mysqldb` 订阅中删除源标识符 `myrdseventsubscription`。  
对于 Linux、macOS 或 Unix：  

```
aws rds remove-source-identifier-from-subscription \
    --subscription-name myrdseventsubscription \
    --source-identifier mysqldb
```
对于：Windows  

```
aws rds remove-source-identifier-from-subscription ^
    --subscription-name myrdseventsubscription ^
    --source-identifier mysqldb
```

## API
<a name="USER_Events.RemovingSource.API"></a>

要从 Amazon RDS 事件通知订阅删除源标识符，请使用 Amazon RDS API [https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_RemoveSourceIdentifierFromSubscription.html](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_RemoveSourceIdentifierFromSubscription.html) 命令。包括以下必需参数：
+ `SubscriptionName`
+ `SourceIdentifier`