21 journalists appear in court in Turkey

Turkey President Recep Tayyip Erdogan, right, shakes hands with the Chief of general staff General Hulusi Akar during a meeting with the top-level military meeting at the Presidential palace in Ankara, Turkey, on Friday, July 29, 2016. Erdogan met with Hulusi Akar, the four-star general who retained his position as chief of staff following a Supreme Military Council meeting, as well as other top military brass of the Turkish armed forces. (Kayhan Ozer/Presidential Press Service, Pool Photo via AP) (The Associated Press)

Turkey President Recep Tayyip Erdogan, rear center, with the Chief of general staff General Hulusi Akar, left, during a top-level military meeting at the Presidential palace in Ankara, Turkey, on Friday, July 29, 2016. Erdogan met with Hulusi Akar, the four-star general who retained his position as chief of staff following a Supreme Military Council meeting, as well as other top military brass of the Turkish armed forces. (Kayhan Ozer/Presidential Press Service, Pool Photo via AP) (The Associated Press)

Turkey President Recep Tayyip Erdogan, right, shakes hands with the Commander of Turkish Air Forces General Abidin Una during a meeting with the top-level military chiefs at the Presidential palace in Ankara, Turkey, on Friday, July 29, 2016. Erdogan met with Hulusi Akar, the four-star general who retained his position as chief of staff following a Supreme Military Council meeting, as well as other top military brass of the Turkish armed forces (Kayhan Ozer/Presidential Press Service, Pool Photo via AP) (The Associated Press)

Twenty-one journalists are appearing in court in Istanbul after being detained as part of a sweeping crackdown following Turkey's July 15 failed military coup.

Television footage showed police leading the journalists to the courthouse Friday. They are among 42 for whom detention orders were issued Monday, while authorities are searching for those still at large, the state-run Anadolu agency said.

Turkey declared a state of emergency following the failed coup that caused 290 deaths. Its clampdown targets those suspected of ties to U.S.-based Muslim cleric Fethullah Gulen, whom the government accuses of masterminding the plot. Gulen has denied knowledge.

Nearly 16,000 people have been detained over alleged links to the uprising. Tens of thousands of civil servants have been dismissed for alleged ties to Gulen, according to Anadolu.