:doc:`Athena <../../athena>` / Client / delete_capacity_reservation

***************************
delete_capacity_reservation
***************************



.. py:method:: Athena.Client.delete_capacity_reservation(**kwargs)

  

  Deletes a cancelled capacity reservation. A reservation must be cancelled before it can be deleted. A deleted reservation is immediately removed from your account and can no longer be referenced, including by its ARN. A deleted reservation cannot be called by ``GetCapacityReservation``, and deleted reservations do not appear in the output of ``ListCapacityReservations``.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteCapacityReservation>`_  


  **Request Syntax**
  ::

    response = client.delete_capacity_reservation(
        Name='string'
    )
    
  :type Name: string
  :param Name: **[REQUIRED]** 

    The name of the capacity reservation to delete.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Athena.Client.exceptions.InvalidRequestException`

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

  