When you delete a label, Amazon Fraud Detector permanently deletes that label and the data is no longer stored in Amazon Fraud Detector.
You cannot delete a label that is included in an event type in Amazon Fraud Detector. And you also cannot delete a label that is assigned to an event ID. You must first delete the relevant event ID.
You can delete labels in Amazon Fraud Detector console, using the delete-label
Delete label using the console
To delete a label
-
Sign in to the AWS Management Console and open the Amazon Fraud Detector console at https://console.aws.amazon.com/frauddetector
. -
In the left navigation pane of the Amazon Fraud Detector console, choose Resources, then choose Labels.
-
Choose the label that you want to delete.
-
Choose Actions, and then choose Delete.
-
Enter the label name, and then choose Delete label.
Delete a label using the AWS SDK for Python (Boto3)
The following AWS SDK for Python (Boto3) example code deletes a label legit using the DeleteLabel API.
import boto3
fraudDetector = boto3.client('frauddetector')
fraudDetector.delete_event_label (
name = 'legit'
)