:doc:`ForecastService <../../forecast>` / Client / delete_dataset

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



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

  

  Deletes an Amazon Forecast dataset that was created using the `CreateDataset <https://docs.aws.amazon.com/forecast/latest/dg/API_CreateDataset.html>`__ operation. You can only delete datasets that have a status of ``ACTIVE`` or ``CREATE_FAILED``. To get the status use the `DescribeDataset <https://docs.aws.amazon.com/forecast/latest/dg/API_DescribeDataset.html>`__ operation.

   

  .. note::

    

    Forecast does not automatically update any dataset groups that contain the deleted dataset. In order to update the dataset group, use the `UpdateDatasetGroup <https://docs.aws.amazon.com/forecast/latest/dg/API_UpdateDatasetGroup.html>`__ operation, omitting the deleted dataset's ARN.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/DeleteDataset>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the dataset to delete.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`ForecastService.Client.exceptions.InvalidInputException`

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

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

  