Deleting inclusion patterns

Use this API to delete wildcards patterns from the inclusion list.

Requirement: OpenSearchServer v1.5

Call parameters

URL: /services/rest/index/{index_name}/crawler/web/patterns/inclusion

Method: DELETE

HTTP Header:

  • Content-Type (required): application/json

URL parameters:

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

RAW data: an array of patterns


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" \
-d '["*"]'

View/edit on GitHub