It would definitely be an undesired behavior for notes to be deleted just because they aren’t in the current CSV you’re importing. Yikes!
But there are easy ways to deal with this – add a tags column to your CSV. Instead of deleting those the rows from your CSV, tag them DELETE
, then after you import the file, delete those notes from Anki, and delete those rows from your CSV.
Or if you don’t want to add a column, just add a unique string in a certain field.