Commands

Delete

Delete Command for Python SDK

The delete method allows you to delete documents from your index using various criteria.

Arguments

DeletePayloadobjectrequired

Response

Responseintrequired

The number of documents that were successfully deleted.

Delete by IDs Array
index.delete(ids=["star-wars", "inception"]);
Delete by Prefix
index.delete(prefix="star-");
Delete with Filter
index.delete(filter="age > 30");
Loading search…