Former president Jacob Zuma has tweeted an apology for claiming on the social media platform in 2019 that former minister Derek Hanekom was a “known enemy agent”.

Zuma lost a bid to challenge an earlier court ruling, that found he had defamed Hanekom, when his application was dismissed by the Constitutional Court.

Failing to delete his offending tweet and issue an apology would have placed him in contempt of court.

“I unconditionally withdraw this allegation,” said a tweet posted on the timeline of the former president on Sunday.

Zuma’s attorney, Eric Mabuza, confirmed on Sunday that the apology was authentic.

Hanekom sought R500,000 in damages from Zuma for the original tweet which implied he was an apartheid agent.

TimesLIVE reported on Friday that Zuma’s Constitutional Court application was dismissed with costs on the grounds that there was no reasonable prospect of success.

The Supreme Court of Appeal (SCA) had earlier dismissed Zuma’s bid to appeal against a high court ruling that found he had defamed the former minister.

Durban high court judge Dhaya Pillay in September 2019 ordered Zuma to remove the tweet and publish an apology within 24 hours.

Hanekom was the former tourism minister in Zuma’s administration.