index.delete(ids=["star-wars", "inception"]);

Delete Command for Python SDK

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

Arguments

DeletePayload
object
required

Response

Response
int
required

The number of documents that were successfully deleted.

index.delete(ids=["star-wars", "inception"]);