Delete all url in Url Browser

Use this API to delete all URLs in the URL database.

Requirement: OpenSearchServer v1.5

Call parameters

URL: /services/rest/index/{index_name}/crawler/web/urls

Method: DELETE

HTTP Header:

  • Content-Type (required): application/json
  • Accept (optional returned type): application/json or application/xml

URL parameters:

  • index_name (required): The name of the index.

Success response

HTTP code:

Content (application/json):

"successful": true,
"info": "delete all"

Error response

The delete is failed. The reason why is provided in the content.

HTTP code:

Sample call

Using CURL:

curl -XDELETE -H "Content-Type: application/json" \
-d '[""]' \

Using jQuery:

type: "DELETE",
dataType: "json",
url: "http://localhost:8080/services/rest/index/my_index/crawler/web/urls console.log(data);

View/edit on GitHub