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

***************************
cancel_capacity_reservation
***************************



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

  

  Cancels the capacity reservation with the specified name. Cancelled reservations remain in your account and will be deleted 45 days after cancellation. During the 45 days, you cannot re-purpose or reuse a reservation that has been cancelled, but you can refer to its tags and view it for historical reference.

  

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


  **Request Syntax**
  ::

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

    The name of the capacity reservation to cancel.

    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

  