To delete documents based on their data, pass a filter query to the delete operation.
This deletes all document matching the filter query.For example, to delete all documents with genre “documentary” and year 2019 from a collection, use the following code:
Copy
res = lambda_db.collections.docs.delete( collection_name="your_collection_name", filter_={ "queryString": { "query": "genre:documentary AND year:2019" } })