I am using the following snippet to delete documents from a collection:
await payload.delete({
collection: collectionSlug,
where: {
'metadata.id': {
in: metadataIds
}
},
depth: 0,
user: user
})
This is only deleting 10 documents per invocation. (when I call it again, it will delete the next 10 documents...) However, limit is not a valid option parameter to payload.delete as it is with payload.find. Any ideas how to delete all the documents which meet the where query? Thanks!