:doc:`OpenSearchServiceServerless <../../opensearchserverless>` / Client / delete_index

************
delete_index
************



.. py:method:: 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 <https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html#serverless-semantic-enrichment>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/DeleteIndex>`_  


  **Request Syntax**
  ::

    response = client.delete_index(
        id='string',
        indexName='string'
    )
    
  :type id: string
  :param id: **[REQUIRED]** 

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

    

  
  :type indexName: string
  :param indexName: **[REQUIRED]** 

    The name of the index to delete.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`OpenSearchServiceServerless.Client.exceptions.InternalServerException`

  
  *   :py:class:`OpenSearchServiceServerless.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`OpenSearchServiceServerless.Client.exceptions.ValidationException`

  