Delete documents from index

POST https://{{searchServiceName}}.search.windows.net/indexes/{{searchIndexName}}/docs/index?api-version=2020-06-30

Official documentation

This section covers how to completely delete an item from the index.

Note: Any fields specified other than the ID will be ignored.

Request Params

KeyDatatypeRequiredDescription
api-versionstring

Request Body

{"value"=>[{"@search.action"=>"delete", "Field1 (id)"=>"id of item to be deleted"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"@odata.context":"https://postman-cognitive-search.search.windows.net/indexes('hotels-quickstart')/$metadata#Collection(Microsoft.Azure.Search.V2020_06_30.IndexResult)","value":[{"key":"1","status":true,"errorMessage":null,"statusCode":200}]}