Delete Data Source (Azure Search Service REST API)

The Delete Data Source operation removes a data source from your Azure Search service.

DELETE https://[service name][datasource name]?api-version=[api-version]  
api-key: [admin key]  


If any indexers reference the data source that you're deleting, the delete operation will still proceed. However, those indexers will transition into an error state upon their next run.

The api-version is required. The current version is 2019-05-06. See API versions in Azure Search for details.

The api-key must be an admin key (as opposed to a query key). Refer to the authentication section in Azure Search Service REST to learn more about keys. Create an Azure Search service in the portal explains how to get the service URL and key properties used in the request.


Status Code: 204 No Content is returned for a successful response.

See also

Azure Search Service REST
HTTP status codes (Azure Search)
Indexer operations (Azure Search Service REST API)
Naming rules (Azure Search)