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: /api/content/delete/id

Request

Supported Method

POST

Content-Type

application/x-www-form-urlencoded

JSON Object for Request

Attribute Name

Type

Comment

identifier

URL

URI of the document to be deleted

searchSpaceId

String

Identifier of the target SearchSpace

Note

If you do not specify a searchSpaceId, the return 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"
}