:doc:`CodeStarNotifications <../../codestar-notifications>` / Client / delete_target

*************
delete_target
*************



.. py:method:: CodeStarNotifications.Client.delete_target(**kwargs)

  

  Deletes a specified target for notifications.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codestar-notifications-2019-10-15/DeleteTarget>`_  


  **Request Syntax**
  ::

    response = client.delete_target(
        TargetAddress='string',
        ForceUnsubscribeAll=True|False
    )
    
  :type TargetAddress: string
  :param TargetAddress: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the Amazon Q Developer in chat applications topic or Amazon Q Developer in chat applications client to delete.

    

  
  :type ForceUnsubscribeAll: boolean
  :param ForceUnsubscribeAll: 

    A Boolean value that can be used to delete all associations with this Amazon Q Developer in chat applications topic. The default value is FALSE. If set to TRUE, all associations between that target and every notification rule in your Amazon Web Services account are deleted.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`CodeStarNotifications.Client.exceptions.ValidationException`

  