:doc:`FraudDetector <../../frauddetector>` / Client / delete_event

************
delete_event
************



.. py:method:: FraudDetector.Client.delete_event(**kwargs)

  

  Deletes the specified event.

   

  When you delete an event, Amazon Fraud Detector permanently deletes that event and the event data is no longer stored in Amazon Fraud Detector. If ``deleteAuditHistory`` is ``True``, event data is available through search for up to 30 seconds after the delete operation is completed.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteEvent>`_  


  **Request Syntax**
  ::

    response = client.delete_event(
        eventId='string',
        eventTypeName='string',
        deleteAuditHistory=True|False
    )
    
  :type eventId: string
  :param eventId: **[REQUIRED]** 

    The ID of the event to delete.

    

  
  :type eventTypeName: string
  :param eventTypeName: **[REQUIRED]** 

    The name of the event type.

    

  
  :type deleteAuditHistory: boolean
  :param deleteAuditHistory: 

    Specifies whether or not to delete any predictions associated with the event. If set to ``True``,

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`FraudDetector.Client.exceptions.InternalServerException`

  
  *   :py:class:`FraudDetector.Client.exceptions.ThrottlingException`

  
  *   :py:class:`FraudDetector.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`FraudDetector.Client.exceptions.ValidationException`

  