:doc:`ConnectCases <../../connectcases>` / Client / delete_case

***********
delete_case
***********



.. py:method:: ConnectCases.Client.delete_case(**kwargs)

  

  The DeleteCase API permanently deletes a case and all its associated resources from the cases data store. After a successful deletion, you cannot:

   

  
  * Retrieve related items
   
  * Access audit history
   
  * Perform any operations that require the CaseID
  

   

  .. warning::

     

    This action is irreversible. After you delete a case, you cannot recover its data.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/DeleteCase>`_  


  **Request Syntax**
  ::

    response = client.delete_case(
        domainId='string',
        caseId='string'
    )
    
  :type domainId: string
  :param domainId: **[REQUIRED]** 

    A unique identifier of the Cases domain.

    

  
  :type caseId: string
  :param caseId: **[REQUIRED]** 

    A unique identifier of the case.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`ConnectCases.Client.exceptions.InternalServerException`

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

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

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

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

  