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

************
delete_label
************



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

  

  Deletes a label.

   

  You cannot delete labels that are included in an event type in Amazon Fraud Detector.

   

  You cannot delete a label assigned to an event ID. You must first delete the relevant event ID.

   

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

  

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


  **Request Syntax**
  ::

    response = client.delete_label(
        name='string'
    )
    
  :type name: string
  :param name: **[REQUIRED]** 

    The name of the label to delete.

    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

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

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

  