Inverness leapfrogged fellow strugglers Ayr in the cinch Championship table after a 3-1 victory at Somerset Park.
The visitors went ahead in the 29th minute when Billy Mckay took advantage of a defensive error to net his ninth goal of the season.
Inverness made sure of the points early in the second half as Morgan Boyes scored twice in the space of eight minutes.
Ayr pulled a goal back in the 65th minute when Logan Chalmers lashed home, while Cameron Harper hit the crossbar for Inverness late on.
Subscribe or register today to discover more from DonegalLive.ie
Buy the e-paper of the Donegal Democrat, Donegal People's Press, Donegal Post and Inish Times here for instant access to Donegal's premier news titles.
Keep up with the latest news from Donegal with our daily newsletter featuring the most important stories of the day delivered to your inbox every evening at 5pm.