York hammered Bristol Rovers, a result that signalled the end of Mark McGhee's 11-month reign at the Memorial Stadium.
The Minstermen scored all four of their goals in the first 33 minutes, the first a headed own goal by Pirates defender Garry Kenneth.
Tom Eaves fired Rovers level a minute later, but the hosts took control once Ashley Chambers had restored the lead with a header from Matty Blair's cross.
Jason Walker volleyed a third and a chip from Chambers completed the rout.
The defeat, a ninth in Rovers' last 11 matches, saw
McGhee relieved of his duties
less than a year after being appointed as successor to Paul Buckle.
They remain second from bottom in League Two, a point from safety.
VIEW FROM THE DRESSING ROOM
York City manager Gary Mills told BBC Radio York:
"We've addressed this week about being on the front foot and making it difficult for teams. Within half an hour, we've done what we've done.
"Obviously we're disappointed to concede straight after we've scored, but we bounced back again straight away and what good goals they were.
"In the last three games, we've taken six points and scored seven goals. The players have deserved that today."
York 24 Ingham 04 Smith 06 Parslow 16 Fyfield 23 Doig (Allen - 56' ) 08 Kerr 17 Blair 19 Potts 26 McLaughlin (Smith - 45' ) 09 Walker 10 Chambers (Rodman - 65' ) Substitutes 01 Musselwhite 05 McGurk 12 Bullock 13 Smith 27 Allen 33 Rodman 07 Reed Bristol Rovers 28 Walker 04 Woodards (Smith - 46' ) 05 Kenneth 06 Parks 11 Broghammer 34 Branston (Richard - 89' ) 03 Paterson 26 Lund (Clucas - 46' ) 07 Clarkson 16 Anyinsah 32 Eaves Substitutes 20 Gough 02 Smith 15 Norburn 25 Clucas 10 Richard 17 Harrison 27 Riordan