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

****************
delete_case_rule
****************



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

  

  Deletes a case rule. In the Amazon Connect admin website, case rules are known as *case field conditions*. For more information about case field conditions, see `Add case field conditions to a case template <https://docs.aws.amazon.com/connect/latest/adminguide/case-field-conditions.html>`__.

  

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


  **Request Syntax**
  ::

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

    Unique identifier of a Cases domain.

    

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

    Unique identifier of a case rule.

    

  
  
  :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.ThrottlingException`

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

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

  