:doc:`OpenSearchService <../../opensearch>` / Client / delete_data_source

******************
delete_data_source
******************



.. py:method:: OpenSearchService.Client.delete_data_source(**kwargs)

  

  Deletes a direct-query data source. For more information, see `Deleting an Amazon OpenSearch Service data source with Amazon S3 <https://docs.aws.amazon.com/opensearch-service/latest/developerguide/direct-query-s3-delete.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DeleteDataSource>`_  


  **Request Syntax**
  ::

    response = client.delete_data_source(
        DomainName='string',
        Name='string'
    )
    
  :type DomainName: string
  :param DomainName: **[REQUIRED]** 

    The name of the domain.

    

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

    The name of the data source to delete.

    

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

    
    ::

      {
          'Message': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The result of a ``GetDataSource`` operation.

      
      

      - **Message** *(string) --* 

        A message associated with deletion of the data source.

        
  
  **Exceptions**
  
  *   :py:class:`OpenSearchService.Client.exceptions.BaseException`

  
  *   :py:class:`OpenSearchService.Client.exceptions.InternalException`

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

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

  
  *   :py:class:`OpenSearchService.Client.exceptions.DisabledOperationException`

  
  *   :py:class:`OpenSearchService.Client.exceptions.DependencyFailureException`

  