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

*******************
delete_related_item
*******************



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

  

  Deletes the related item resource under a case.

   

  .. note::

    

    This API cannot be used on a FILE type related attachment. To delete this type of file, use the `DeleteAttachedFile <https://docs.aws.amazon.com/connect/latest/APIReference/API_DeleteAttachedFile.html>`__ API

    

  

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


  **Request Syntax**
  ::

    response = client.delete_related_item(
        domainId='string',
        caseId='string',
        relatedItemId='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.

    

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

    A unique identifier of a related item.

    

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

  