Skip to main content

Web Service Method: Delete a Document from Search Index

Abstract

Web Service Method: Delete a Document from Search Index

Description

This method deletes an existing entry from the search index identified by the given document URI.

URL: /GraphSearch/api/content/delete/id

Request

Supported Method

POST

Content-Type

application/json

JSON Object for Request

Attribute Name

Type

Comment

identifier

URL

URI of the document to be deleted

searchSpaceId

String

Identifier of the target Search Space

Note

If you do not specify a searchSpaceId, the response will list results for the default Search Space.

Response

Content Type

text/plain

Status: 200 - OK

Example

Delete the document identified by the URI 'https://en.wikipedia.org/wiki/Mojito' from the search index:

{
    "identifier":"https://en.wikipedia.org/wiki/Mojito",
    "searchSpaceId" : "1321f5a1-3ee9-4317-a33a-65d6cfa5ce40"
}