DeleteIndex
Source:
src/AWS/OpenSearchServerless/DeleteIndex.ts
Runtime binding for the DeleteIndex operation scoped to one collection
(IAM action aoss:APIAccessAll on the collection ARN).
Deletes an index from the bound Collection — the teardown half of
the runtime multi-tenant pattern built with CreateIndex. Deleting
an already-deleted index surfaces the typed ResourceNotFoundException.
The calling principal must also be granted aoss:DeleteIndex on the index
pattern by a data AccessPolicy. Provide the implementation with
Effect.provide(AWS.OpenSearchServerless.DeleteIndexHttp).
Managing Indexes at Runtime
Section titled “Managing Indexes at Runtime”const deleteIndex = yield* AWS.OpenSearchServerless.DeleteIndex(collection);
yield* deleteIndex({ indexName: "tenant-42" }).pipe( Effect.catchTag("ResourceNotFoundException", () => Effect.void),);