ReferenceAsk
?

deletes

A map outcome that removes documents an earlier object created.
deletes(externalIds: string | string[]) MapOutcome

Removes documents by the external ids an earlier object gave them, for a source whose objects represent deletions (a tombstone record, a delete event). It is how a mapper mirrors removals from the origin into the corpus.

Parameters
externalIds
string | string[]
RequiredThe external id(s) of the documents to remove.
Mirror a deletion
if (event.type === 'delete') return deletes([event.recordId]);