

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

# 清除 AWS 資源
<a name="examples-gs-scala-cleanup"></a>

本節包含清除在輪轉時段教學課程中建立 AWS 之資源的程序。

**Topics**
+ [刪除 Managed Service for Apache Flink 應用程式](#examples-gs-scala-cleanup-app)
+ [刪除您的 Kinesis 資料串流](#examples-gs-scala-cleanup-stream)
+ [刪除您的 Amazon S3 物件和儲存貯體](#examples-gs-scala-cleanup-s3)
+ [刪除您的 IAM 資源](#examples-gs-scala-cleanup-iam)
+ [刪除您的 CloudWatch 資源](#examples-gs-scala-cleanup-cw)

## 刪除 Managed Service for Apache Flink 應用程式
<a name="examples-gs-scala-cleanup-app"></a>

1. 登入 AWS 管理主控台，並在 https：//https://console.aws.amazon.com/flink 開啟 Amazon MSF 主控台。

1. 在 Managed Service for Apache Flink 面板中，選擇 **MyApplication**。

1. 在應用程式的頁面，選擇**刪除**，然後確認刪除。

## 刪除您的 Kinesis 資料串流
<a name="examples-gs-scala-cleanup-stream"></a>

1. 在以下網址開啟 Kinesis 主控台：[https://console.aws.amazon.com/kinesis](https://console.aws.amazon.com/kinesis)。

1. 在 Kinesis Data Streams 面板中，選擇 **ExampleInputStream**。

1. 在 **ExampleInputStream** 頁面，選擇**刪除 Kinesis 串流**，然後確認刪除。

1. 在 **Kinesis 串流**頁面，依序選擇 **ExampleOutputStream**、**動作**和**刪除**，然後確認刪除。

## 刪除您的 Amazon S3 物件和儲存貯體
<a name="examples-gs-scala-cleanup-s3"></a>

1. 在以下網址開啟 Amazon S3 主控台：[https://console.aws.amazon.com/s3/](https://console.aws.amazon.com/s3/)。

1. 選擇 **ka-app-code-{{<username>}} 儲存貯體。**

1. 選擇**刪除**，然後輸入儲存貯體名稱以確認刪除。

## 刪除您的 IAM 資源
<a name="examples-gs-scala-cleanup-iam"></a>

1. 前往 [https://console.aws.amazon.com/iam/](https://console.aws.amazon.com/iam/) 開啟 IAM 主控台。

1. 在導覽列中，選擇**政策**。

1. 在篩選器控制項中，輸入 **kinesis**。

1. 選擇 **kinesis-analytics-service-MyApplication-us-west-2** 政策。

1. 選擇**政策動作**，然後選擇**刪除**。

1. 在導覽列中，選擇**角色**。

1. 選擇 **kinesis-analytics-MyApplication-us-west-2** 角色。

1. 選擇**刪除角色**，然後確認刪除。

## 刪除您的 CloudWatch 資源
<a name="examples-gs-scala-cleanup-cw"></a>

1. 在以下網址開啟 CloudWatch 主控台：[https://console.aws.amazon.com/cloudwatch/](https://console.aws.amazon.com/cloudwatch/)。

1. 在導覽列中，選擇**日誌**。

1. 選擇 **/aws/kinesis-analytics/MyApplication** 日誌群組。

1. 選擇**刪除日誌群組**，然後確認刪除。