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

********************
delete_model_version
********************



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

  

  Deletes a model version.

   

  You can delete models and model versions in Amazon Fraud Detector, provided that they are not associated with a detector version.

   

  When you delete a model version, Amazon Fraud Detector permanently deletes that model version 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/DeleteModelVersion>`_  


  **Request Syntax**
  ::

    response = client.delete_model_version(
        modelId='string',
        modelType='ONLINE_FRAUD_INSIGHTS'|'TRANSACTION_FRAUD_INSIGHTS'|'ACCOUNT_TAKEOVER_INSIGHTS',
        modelVersionNumber='string'
    )
    
  :type modelId: string
  :param modelId: **[REQUIRED]** 

    The model ID of the model version to delete.

    

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

    The model type of the model version to delete.

    

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

    The model version number of the model version to delete.

    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

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

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

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

  