deleteNodesAndMetadata
Atomically deletes nodes and their metadata, chunking both IN queries below SQLite's bind-parameter limit. Every chunk participates in the same transaction, so cancellation or a query failure rolls back the whole batch.