David Moyes’ side were dominant from start to finish against Rovers as they cruise on to face either Liverpool or Manchester United in the next round.
The Hammers got the party started inside the first two minutes in East London as Pablo Fornals arrived on cue in the box to fire home Ryan Fredericks’ cross.
And there was no stopping the hosts before the break as Manuel Lanzini wasted an excellent chance before Andriy Yarmolenko clipped home a second.
Any chance of a possible Doncaster comeback vanished within minutes of the restart as Tomas Soucek was denied by Ellery Balcombe and Andy Butler diverted home Mark Noble’s corner.
Doncaster did hit the woodwork through Matty Smith in the closing stages before a debut goal from Oladapo Afolayan clinched a dominant win for West Ham.
Full Time at the London Stadium it’s West Ham 4 Doncaster Rovers 0