

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 在 中刪除通知聯絡人 Lightsail
<a name="amazon-lightsail-deleting-notification-contacts"></a>

從 Amazon Lightsail 中刪除您的電子郵件和行動電話號碼通知聯絡人，以停止接收 Lightsail 資源的電子郵件和簡訊通知。如需有關通知的詳細資訊，請參閱[通知](amazon-lightsail-notifications.md)。

您也可以停用或刪除警示，以停止接收特定警示的通知。如需詳細資訊，請參閱[刪除或停用指標警示](amazon-lightsail-deleting-health-metric-alarms.md)。

**內容**
+ [使用 Lightsail 主控台刪除通知聯絡人](#deleting-notification-contacts-console)
+ [使用 刪除通知聯絡人 AWS CLI](#deleting-notification-contacts-cli)
+ [刪除通知聯絡人後的後續步驟](#next-steps-deleting-notification-contacts)

## 使用 Lightsail 主控台刪除通知聯絡人
<a name="deleting-notification-contacts-console"></a>

完成下列步驟，以使用 Lightsail 主控台刪除通知聯絡人。

1. 登入 [Lightsail 主控台](https://lightsail.aws.amazon.com/)。

1. 在Lightsail首頁上，選擇頂端導覽功能表上的使用者或角色。

1. 在下拉式功能表中選擇 **Account (帳戶)**。  
![Lightsail 主控台中的帳戶選單。](http://docs.aws.amazon.com/zh_tw/lightsail/latest/userguide/images/amazon-lightsail-console-account-menu.png)

1. 在 **Profile & contacts** (個人檔案與聯絡人) 索引標籤上的 **Notification contacts** (通知聯絡人) 區段中，選擇您要刪除的電子郵件地址或行動電話號碼旁的刪除圖示。

1. 選擇 **Yes (是)**，確認您要刪除通知聯絡人。

## 使用 刪除通知聯絡人 AWS CLI
<a name="deleting-notification-contacts-cli"></a>

完成下列步驟，以使用 AWS Command Line Interface (AWS CLI) 刪除 Lightsail 的通知聯絡人。

1. 開啟終端機或命令提示視窗。

   如果您尚未[安裝 ，請將其 AWS CLI 設定為使用 Lightsail](lightsail-how-to-set-up-and-configure-aws-cli.md)。

1. 輸入下列命令以刪除通知聯絡人：

   ```
   aws lightsail delete-contact-method --region {{Region}} --notificationProtocol {{Protocol}}
   ```

   在命令中：
   + 具有 {{的區域}}， AWS 區域 其中應刪除通知聯絡人。
   + 使用您要刪除之聯絡人的通知通訊協定 (例如電子郵件或簡訊) 取代 {{Protocol}}。

   範例：

   ```
   aws lightsail delete-contact-method --region {{us-west-2}} --notificationProtocol {{SMS}}
   ```

   當您按下 Enter 鍵時，您會看到操作回應，其中包含請求的詳細資訊。

## 刪除通知聯絡人後的後續步驟
<a name="next-steps-deleting-notification-contacts"></a>

刪除通知聯絡人之後，您可以執行幾項其他工作：
+ 刪除通知聯絡人會停止電子郵件和簡訊通知，但不會阻止通知橫幅顯示在 Lightsail 主控台中。若要停止通知橫幅，以及停止電子郵件和簡訊通知，請停用或刪除造成這些通知的警示。如需詳細資訊，請參閱[刪除或停用指標警示](amazon-lightsail-deleting-health-metric-alarms.md)。
+ 在 Lightsail 中新增您的電子郵件地址和行動電話號碼作為通知聯絡人，以開始再次接收電子郵件和簡訊通知。如需詳細資訊，請參閱[新增通知聯絡人](amazon-lightsail-adding-editing-notification-contacts.md)。