Oleksii Chernyshov
12/18/2025, 9:50 AMEdgar Ramírez (Arch.dev)
12/19/2025, 6:40 PMOleksii Chernyshov
12/23/2025, 7:45 AM{action: to_delete, name: new.pdf, id: 1}, {...}
2. Target reads this row and perform some search based on unique field, in our case it will be id
3. Last step - delete found data objects from target. If we have structure 1 file = 1 data object inside target storage, then just delete single data object. In my case it is 1 file = many vectors, but every vector have assigned metadata with required file_id so this is not a big deal to find exact vectors to delete.
On the other hand, the question is: How meltano tap will detect deleted files?
We have saved storage state as simple JSON file.
1. During first iteration we can perform the same way we do previously (just detect new and modified files based on some field, for example dateModified)
2. Second iteration we'll go through state items and check if every item is still inside source storage.
If we met state like this:
[
{name:1, id:1, ...},
{name:2, id:2, ...},
{name:3, id:3, ...}
]
And file name:2 and id:2 is not longer represented inside source storage -> we push message with some key like action: to_delete, id:1, name:1