:doc:`Rekognition <../../rekognition>` / Client / delete_dataset

**************
delete_dataset
**************



.. py:method:: Rekognition.Client.delete_dataset(**kwargs)

  

  .. note::

    

    This operation applies only to Amazon Rekognition Custom Labels.

    

   

  Deletes an existing Amazon Rekognition Custom Labels dataset. Deleting a dataset might take while. Use  DescribeDataset to check the current status. The dataset is still deleting if the value of ``Status`` is ``DELETE_IN_PROGRESS``. If you try to access the dataset after it is deleted, you get a ``ResourceNotFoundException`` exception.

   

  You can't delete a dataset while it is creating ( ``Status`` = ``CREATE_IN_PROGRESS``) or if the dataset is updating ( ``Status`` = ``UPDATE_IN_PROGRESS``).

   

  This operation requires permissions to perform the ``rekognition:DeleteDataset`` action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/rekognition-2016-06-27/DeleteDataset>`_  


  **Request Syntax**
  ::

    response = client.delete_dataset(
        DatasetArn='string'
    )
    
  :type DatasetArn: string
  :param DatasetArn: **[REQUIRED]** 

    The ARN of the Amazon Rekognition Custom Labels dataset that you want to delete.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Rekognition.Client.exceptions.InternalServerError`

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

  
  *   :py:class:`Rekognition.Client.exceptions.ProvisionedThroughputExceededException`

  
  *   :py:class:`Rekognition.Client.exceptions.InvalidParameterException`

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

  
  *   :py:class:`Rekognition.Client.exceptions.LimitExceededException`

  
  *   :py:class:`Rekognition.Client.exceptions.ResourceInUseException`

  
  *   :py:class:`Rekognition.Client.exceptions.ResourceNotFoundException`

  