1 Answer
- Newest
- Most votes
- Most comments
1
Hi,
-
You have full examples of lifecycle rules in AWS public documentation: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-lifecycle.html#serverless-lifecycle-policies
-
Why don't you use the OpenSearch delete document API ? See https://opensearch.org/docs/latest/api-reference/document-apis/delete-document/
If you don't want to use REST but a specific SDK, the list is there: https://opensearch.org/docs/latest/clients
Best,
Didier
@Didier Durand, thanks for the answer. Nevertheless none of the API's shows me a way how to delete a document 30d back or 90d back. Can you give a specific query at least. I am using AWS Serverless Collection index.
Relevant content
- asked 2 years ago

Hi just realized the following from the document:-
Only time series collections support data lifecycle policies. They are not supported by search or vector search collections.I am usingsearchindex type. So lifecycle rule doesn't work here. Is there an alternative?