:doc:`CloudWatchLogs <../../logs>` / Client / delete_delivery_source

**********************
delete_delivery_source
**********************



.. py:method:: CloudWatchLogs.Client.delete_delivery_source(**kwargs)

  

  Deletes a *delivery source*. A delivery is a connection between a logical *delivery source* and a logical *delivery destination*.

   

  You can't delete a delivery source if any current deliveries are associated with it. To find whether any deliveries are associated with this delivery source, use the `DescribeDeliveries <https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeDeliveries.html>`__ operation and check the ``deliverySourceName`` field in the results.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDeliverySource>`_  


  **Request Syntax**
  ::

    response = client.delete_delivery_source(
        name='string'
    )
    
  :type name: string
  :param name: **[REQUIRED]** 

    The name of the delivery source that you want to delete.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`CloudWatchLogs.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`CloudWatchLogs.Client.exceptions.ServiceUnavailableException`

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

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

  
  *   :py:class:`CloudWatchLogs.Client.exceptions.ServiceQuotaExceededException`

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

  