Turkey's government lifted the Twitter ban on Twitter on Thursday, only day after the country's highest court ruled that the block was a violation of freedom and must be restored, Reuters reported.

The Constitution Court ruled against the Twitter ban on Wednesday, according to Reuters.

Turkey blocked access to the social media website two weeks ago after some users posted links suggesting government corruption, according to Reuters. Prime Minister Recep Tayyip Erdogan vowed to "rip out the roots" of Twitter for allowing the postings.

The government also blocked access to YouTube following the leak of an audio recording of a high-level security meeting discussing a possible intervention in Syria, Reuters reported. The moves sparked international criticism and the ban was challenged in several Turkish courts.

The high court decision was limited to Twitter and access to YouTube remained blocked on Thursday, according to Reuters.

The leaks were posted on Twitter and YouTube in the run up to local elections on March 30, which gave Erdogan's ruling party a decisive victory, Reuters reported.

Twitter welcomed the lifting of the ban and European Commission Vice President Neelie Kroes tweeted that unblocking YouTube was a "good move for free speech," according to Reuters.

The government took several hours to reinstate access even though the court's ruling was published in the Official Gazette early Thursday, Reuters reported.

The apparent foot-dragging raised questions as to whether the government would flout the order, as it had done with a previous ruling by a lower court, according to Reuters. Despite the ban, many tech-savvy users, including President Abdullah Gul, had found ways to continue tweeting and posted videos on YouTube.