Delete documents from index
POST https://{{searchServiceName}}.search.windows.net/indexes/{{searchIndexName}}/docs/index?api-version=2020-06-30
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
Key | Datatype | Required | Description |
---|---|---|---|
api-version | string |
Request Body
{"value"=>[{"@search.action"=>"delete", "Field1 (id)"=>"id of item to be deleted"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
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}]}