Deleting based on metadata in serverless index?

Serverless indexes do not support delete by metadata. Is the correct approach to this to do a query with the relevant metadata, set the topK to infinity, and delete based on IDs there? The documentation suggests using list, but list doesn’t have a filter param either?

1 Like

+1 - would love this feature for deleting by metadata in a serverless index! It’s quite difficult right now to delete appropriately.

@winston1 yes, that’s the recommended approach. Also, FWIW, delete-by-metadata can cause issues on pod-based indexes, and we recommend not to do it on those, either, and instead use a metadata query and batch the deletes. We have this technique outlined in a support article.