OpenSearchServiceServerless / Client / delete_index

delete_index

OpenSearchServiceServerless.Client.delete_index(**kwargs)

Deletes an index from an OpenSearch Serverless collection. Be aware that the index might be configured to conduct automatic semantic enrichment ingestion and search. For more information, see About automatic semantic enrichment.

See also: AWS API Documentation

Request Syntax

response = client.delete_index(
    id='string',
    indexName='string'
)
Parameters:
  • id (string) –

    [REQUIRED]

    The unique identifier of the collection containing the index to delete.

  • indexName (string) –

    [REQUIRED]

    The name of the index to delete.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions