:doc:`TimestreamWrite <../../timestream-write>` / Client / delete_database

***************
delete_database
***************



.. py:method:: TimestreamWrite.Client.delete_database(**kwargs)

  

  Deletes a given Timestream database. *This is an irreversible operation. After a database is deleted, the time-series data from its tables cannot be recovered.*

   

  .. note::

    

    All tables in the database must be deleted first, or a ValidationException error will be thrown.

     

    Due to the nature of distributed retries, the operation can return either success or a ResourceNotFoundException. Clients should consider them equivalent.

    

   

  See `code sample <https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.delete-db.html>`__ for details.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/DeleteDatabase>`_  


  **Request Syntax**
  ::

    response = client.delete_database(
        DatabaseName='string'
    )
    
  :type DatabaseName: string
  :param DatabaseName: **[REQUIRED]** 

    The name of the Timestream database to be deleted.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`TimestreamWrite.Client.exceptions.InternalServerException`

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

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

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

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

  
  *   :py:class:`TimestreamWrite.Client.exceptions.InvalidEndpointException`

  