Delete stored event data - Amazon Fraud Detector

Delete stored event data

You can delete individual stored events data one at a time, or you can delete all stored events data associated with an event type. If you choose to delete all of the events data, Amazon Fraud Detector creates a batch delete job. While this job is in progress, new events data of that event type can’t be stored. If you want to delete an event type, you must first delete all events that are stored to that event type. For instructions on how to delete stored events, see Delete an event or event type .

Delete individual stored event data

When you delete an event, Amazon Fraud Detector permanently deletes that event and the event data is no longer stored in Amazon Fraud Detector.

To delete individual event data in console,

  1. Sign in to the AWS Management Console and open the Amazon Fraud Detector console at https://console.aws.amazon.com/frauddetector.

  2. In the left navigation pane of the Amazon Fraud Detector console, choose Search past predictions

  3. Choose the event that you want to delete.

  4. Choose Actions, and then choose Delete event.

Delete imported event data

You can delete data that has already been imported at any time in the Amazon Fraud Detector console, using the API, or AWS SDK.

To delete imported data in console

  1. Sign in to the AWS Management Console and open the Amazon Fraud Detector console at https://console.aws.amazon.com/frauddetector.

  2. In the left navigation pane of the Amazon Fraud Detector console, choose Events

  3. Choose your event type.

  4. Select Stored events tab.

  5. In the Import events data pane, choose the job Id of an import job you want to delete.

  6. In the event job page, click Actions and select Delete import data.

  7. In the Delete imported events confirmation box, choose Delete events import to delete the imported event data.

Delete imported event data using the AWS SDK for Python (Boto3)

The following example shows a sample request for the DeleteBatchImportJob API. The delete batch import job must include the job ID of an imported job.

import boto3 fraudDetector = boto3.client('frauddetector') fraudDetector.delete_batch_import_job ( jobId = 'sample_batch’ )