When New Zealand won all 3 ODIs in the series against India, there was much checking of old records to see when this had last happened.
Fortunately, this is one performance which appears in the records section of Cricinfo so one does not have to resort to Statsguru.
From this we see:
The last such “whitewash” against India was by 4-0 in 2006-07 by South Africa.
Before that, by West Indies (5-0) in 1988-89
(More than a generation ago).
However, India has also done the same to
Sri Lanka (5-0) IN Sri Lanka in 2017, Zimbabwe (3-0) in 2016 and 20, both times in Zimbabwe. And several others before that.
Not to forget the triple clean sweep in Tests, ODIs and T20Is in Sri Lanka in 2017.
Then one can coin new terms such as brownwashes and blackwashes (though the latter should be applicable only when the West Indies does this).
For Test matches, see this: