

自 2025 年 11 月 7 日起，Amazon Fraud Detector 不再向新客戶開放。對於類似 Amazon Fraud Detector 的功能，請探索 Amazon SageMaker、AutoGluon 和 AWS WAF。

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

# 刪除標籤
<a name="delete-label"></a>

當您刪除標籤時，Amazon Fraud Detector 會永久刪除該標籤，且資料不會再存放在 Amazon Fraud Detector 中。

您無法刪除包含在 Amazon Fraud Detector 中事件類型的標籤。您也無法刪除指派給事件 ID 的標籤。必須先刪除相關的事件 ID。

您可以在 Amazon Fraud Detector 主控台中使用 [delete-label](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/frauddetector/delete-label.html) 命令、[DeleteLabel](https://docs.aws.amazon.com/frauddetector/latest/api/API_DeleteLabel.html) API 或使用 適用於 Python (Boto3) 的 AWS SDK

## 使用主控台刪除標籤
<a name="delete-label-console"></a>

**刪除標籤**

1. 登入 AWS 管理主控台 並開啟位於 https：//[https://console.aws.amazon.com/frauddetector](https://console.aws.amazon.com/frauddetector) 的 Amazon Fraud Detector 主控台。

1. 在 Amazon Fraud Detector 主控台的左側導覽窗格中，選擇**資源**，然後選擇**標籤**。

1. 選擇您要刪除的標籤。

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

1. 輸入標籤名稱，然後選擇**刪除標籤**。

## 使用 刪除標籤 適用於 Python (Boto3) 的 AWS SDK
<a name="delete-label-using-the-aws-python-sdk"></a>

下列 適用於 Python (Boto3) 的 AWS SDK 範例程式碼會使用 [DeleteLabel](https://docs.aws.amazon.com/frauddetector/latest/api/API_DeleteLabel.html) API 刪除標籤*合法性*。

```
import boto3
fraudDetector = boto3.client('frauddetector')

fraudDetector.delete_event_label (
    name = 'legit'
)
```