Due to an import error, I have a bunch of documents (1.4M) that are referencing documents that no longer exists.
For instance, I have the following event
document:
{
"time": 18239,
"recordId": "jhw8er23rh92",
"type": "event"
}
But the document with meta().id == jhw8er23rh92
no longer exists. So I would like to delete this event document (and all 1.4M) of them with a DELETE query.
I’ve tried many things, but I can only seem to get the event documents with recordId that actually do exist with:
select d.recordId from my_bucket d where d.recordId is not null
.
Any ideas?