Delete Index (Azure Search Service REST API)
The Delete Index operation permanently removes an index and its contents from your Azure Search service. This operation is final, with no recovery option. Make sure you have a master copy of your index definition code, data ingestion code, and a backup of the external data source in case a rebuild is required.
To delete an index, provide the command along with the index name. You can get the index name from the service dashboard in the Azure portal, or from the API. See List Indexes (Azure Search Service REST API) for details.
DELETE https://[service name].search.windows.net/indexes/[index name]?api-version=[api-version] api-key: [admin key]
HTTPS is required for service requests. The Delete Index request can be constructed using the DELETE method.
The [index name] in the request URI specifies which index to delete from the indexes collection.
api-version parameter is required. The current version is
api-version=2019-05-06. See API versions in Azure Search for a list of available versions.
The following table describes the required and optional request headers.
You will also need the service name to construct the request URL. You can get the service name and
api-key from your service dashboard in the Azure portal. See Create an Azure Search service in the portal for page navigation help.
Status Code: 204 No Content is returned for a successful response.