:doc:`LexModelsV2 <../../lexv2-models>` / Client / delete_import

*************
delete_import
*************



.. py:method:: LexModelsV2.Client.delete_import(**kwargs)

  

  Removes a previous import and the associated file stored in an S3 bucket.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteImport>`_  


  **Request Syntax**
  ::

    response = client.delete_import(
        importId='string'
    )
    
  :type importId: string
  :param importId: **[REQUIRED]** 

    The unique identifier of the import to delete.

    

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

    
    ::

      {
          'importId': 'string',
          'importStatus': 'InProgress'|'Completed'|'Failed'|'Deleting'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **importId** *(string) --* 

        The unique identifier of the deleted import.

        
      

      - **importStatus** *(string) --* 

        The current status of the deletion. When the deletion is complete, the import will no longer be returned by the `ListImports <https://docs.aws.amazon.com/lexv2/latest/APIReference/API_ListImports.html>`__ operation and calls to the `DescribeImport <https://docs.aws.amazon.com/lexv2/latest/APIReference/API_DescribeImport.html>`__ operation with the import identifier will fail.

        
  
  **Exceptions**
  
  *   :py:class:`LexModelsV2.Client.exceptions.ThrottlingException`

  
  *   :py:class:`LexModelsV2.Client.exceptions.ServiceQuotaExceededException`

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

  
  *   :py:class:`LexModelsV2.Client.exceptions.PreconditionFailedException`

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

  