South Ayrshire Council posted and quickly pulled a Scottish Government covid ad featuring Janey Godley as scandal over her "shockingly racist" tweets blew up.
The comedian had fronted the video campaign promoting face coverings and covid testing before tweets were reported by American online news outlet, The Daily Beast, on Thursday morning.
The Scottish Government subsequently pulled the advert.
The video was understood to have been posted on South Ayrshire Council's Twitter page yesterday afternoon, being removed in the early evening.
A council spokesperson said: “Following the Scottish Government’s advice not to share campaign assets relating to ‘Stop the Spike’ with immediate effect, we removed the post relating to this campaign from our social media channels.”
The BBC reported that Godley, 60, had admitted the tweets from a number of years ago had "terrible, horrific undertones".
A Scottish Government spokesperson said trust in its public health messages was "paramount"

The Youtube star became popular largely due to her voice-overs of First Minister Nicola Sturgeon.
She has apologised "without reservation" to "everyone I hurt" and offered to donate the fee for the advert to charity.
Tweets highlighted were made between 2011 and 2017 about black performers.
In a statement, Ms Godley said: "There are tweets from my past social media that are horridly offensive, I believe in progress not perfection and I am far from perfect.
"People have every right to go through my social media and see what values I hold and to find hurtful phrases and statements is shocking, I am deeply sorry to everyone I offended.
"Comedy is no excuse to use disgusting and hurtful words that affect people and I know many of you expected better of me.
"I apologise for every single word that upset people."
A Scottish government spokesperson said: "A series of unacceptable tweets by Janey Godley have been brought to our attention and, while she has rightly apologised, trust in our public health messages at this time is paramount.
"We have therefore taken the decision to withdraw any further campaign material in which Ms Godley features.
"The material will be discontinued immediately on our own channels and withdrawn as soon as possible from external media."
Don't miss the latest Ayrshire headlines – sign up to our free daily newsletter here