Deleting site map

Use this API to delete site map from the site map list.

Requirement: OpenSearchServer v1.5

Call parameters

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

Method: DELETE

HTTP Header:

  • Content-Type (required): application/json

URL parameters:

  • index_name (required): The name of the index.
  • site_map_url (required): It's the url or the url's array deleted in database.

RAW data: an array of site map


Success response

The patterns have been deleted.

HTTP code:

Content (application/json):

"successful": true,
"info": "2 patterns deleted"

Error response

The deletion failed. The reason is provided in the content.

HTTP code:
404, 500

Sample call

Using CURL:

curl -XDELETE -H "Content-Type: application/json" \

Using jQuery:

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

View/edit on GitHub