Not able to delete index from Amazon OpenSearch Serverless
13:15 17 Nov 2025

As the title mentions, I am not able to delete an Amazon OpenSearch Serverless index from a collection. I have a collection with 9 indexes within it, I don't want to delete the entire collection, only one index. I tried deleting from API SDK and got the ClientError: An error occurred (AccessDeniedException) when calling the DeleteIndex operation: Access denied to delete index also tried to delete from the console and I got the Failed to delete index - test-index. Tried to delete from the console using an admin account and got the same error.

The code that I ran in the API SDK was:

import boto3


client = boto3.client('opensearchserverless', region_name='us-east-1')
 
response = client.delete_index(id='id_test_123', indexName='test_index') 
amazon-web-services opensearch amazon-opensearch opensearch-serverless