Dundee booked their place in the third round of the League Cup at Dens Park with a commanding 4-0 win over Championship Rovers at Dens Park.
Paul Hartley's side won thanks to first-half goals from Greg Stewart and Paul McGinn and further strikes after the break from Peter MacDonald and Martin Boyle.
Grant Murray's men had no answer to their top-flight opponents, who continued their impressive start to the new season.
Dundee went ahead as early as the third minute after, MacDonald nodded the ball on to Boyle, whose shot was deflected wide for a corner.
From the flag-kick, Phil Roberts picked out Stewart, who rose unchallenged inside the six-yard box to place a free header past visiting goalkeeper Kevin Cuthbert.
But Raith threatened soon after as they won a free-kick 22 yards from goal. Former Dundee man Ryan Conroy curled his effort over the Dundee defensive wall with his trusted left foot, only to see Scott Bain scurry across his line to get an outstretched arm to palm his attempt over the bar.
At the other end, Stewart came within inches of grabbing his second goal of the night as he latched on to Boyle's lay-off, only to see his angled shot from outside the penalty area fly narrowly over Cuthbert's bar.
Former Dundee striker Christian Nade then had a mazy run followed by a shot which was saved by Bain as the Kirkcaldy side refused to let their top-flight opponents have it all their own way, before Stewart did something similar for Dundee which brought out a decent save from Cuthbert.
However, the hosts were not to be denied and two minutes before the interval McGinn picked up possession and cut inside onto his left foot before sending an unstoppable 25-yard shot high into the top corner past Cuthbert.
Dundee brought on striker Paul McGowan for defender Thomas Konrad after the break and wasted no time in going for a third goal.
McGinn linked with MacDonald, whose knockdown was met by McGowan - but his ambitious volley was comfortably held by Cuthbert.
The home team had a goal disallowed in the 52nd minute when Boyle was judged to have kicked the ball out of Cuthbert's hands from point-blank range.
However, they succeeded in putting the tie beyond any doubt with a well-worked third goal just before the hour mark.
Stewart sent Boyle racing clear down the right and his inch-perfect cross was swept home by MacDonald from close-range for his second goal in as many games.
Then, in the 70th minute, the scoring was completed when Boyle slotted home from a few yards after MacDonald's shot had been blocked.