awswrangler.opensearch.delete_index

awswrangler.opensearch.delete_index(client: opensearchpy.client.OpenSearch, index: str) Dict[str, Any]

Create an index.

Parameters
  • client (OpenSearch) – instance of opensearchpy.OpenSearch to use.

  • index (str) – Name of the index.

Returns

OpenSearch rest api response

Return type

Dict[str, Any]

Examples

Creating an index.

>>> import awswrangler as wr
>>> client = wr.opensearch.connect(host='DOMAIN-ENDPOINT')
>>> response = wr.opensearch.delete_index(
...     client=client,
...     index="sample-index1"
... )