A Florida state official has been suspended after he wrote a negative rant on Facebook about Orlando and its residents just hours after 49 people were killed in a gay nightclub.

Assistant state attorney Kenneth Lewis said: “Downtown Orlando has no bottom. The entire city should be leveled.”

The Pulse nightclub, targeted by a lone gunman who pledged allegiance to Isis last Saturday evening, is situated in downtown Orlando.

“It is a melting pot of 3rd world miscreants and ghetto thugs. It is void of culture,” Mr Lewis said in the social media post, which has since been deleted.

“If you live down there you do it at your own risk and at your own peril. If you go down there after dark there is seriously something wrong with you,” added Mr Lewis.

The Ninth Judicial Circuit's office, where Mr Lewis worked, suspended him as he violated their social media policy, spokeswoman Angela Starke told NBC affiliated news channel WESH.

(Facebook (Facebook)

In the second post, he wrote, “All Orlando nightclubs should be permanently closed. With our without random gunmen they are zoos,; utter cesspools of debauchery," as reported by the Orlando Sentinel.

Mr Lewis could not be immediately reached for comment.

The social media policy at the attorney's office was put in place in 2014 after Mr Lewis made other controversial comments on Facebook that year.

“Happy Mother's Day to all the crack hoes out there. It's never too late to turn it around, tie your tubes, clean up your life and make difference to someone out there that deserves a better mother,” he wrote in 2014.

In pictures: The victims of the Orlando shooting Show all 44 1 /44 In pictures: The victims of the Orlando shooting In pictures: The victims of the Orlando shooting Frank Escalante This undated photo shows Frank Hernandez, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Luis Daniel Conde This undated photo shows Luis Daniel Conde, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Brenda Lee Marquez McCool In pictures: The victims of the Orlando shooting Yilmary Rodriguez Solivan CORRECTS FROM YILMARY RODRIGUEZ SULIVAN TO YILMARY RODRIGUEZ SOLIVAN- This undated photo shows Yilmary Rodriguez Solivan, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Joel Rayon Paniagua This photo shows Joel Rayon Paniagua, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Jerald Arthur Wright This undated photo shows Jerald Arthur Wright, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Paul Terrell Henry This undated photo shows Paul Terrell Henry, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Shane Evan Tomlinson This undated photo shows Shane Evan Tomlinson, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Antonio Davon Brown This undated photo shows Antonio Davon Brown, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Jason Benjamin Josaphat This undated photo shows Jason Benjamin Josaphat, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Enrique L. Rios, Jr. This undated photo shows Enrique L. Rios, Jr., one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Darryl Roman Burt This undated photo shows Darryl Roman Burt II, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Cory James Connell An undated photo from the Facebook account of Cory James Connell, who police identified as one of the victims of the shooting massacre that happened at the Pulse nightclub of Orlando, Florida, on June 12, 2016. Cory Connell via Facebook/Handout via REUTERS ATTENTION EDITORS - THIS IMAGE WAS PROVIDED BY A THIRD PARTY. EDITORIAL USE ONLY. NO RESALES. NO ARCHIVE. REUTERS In pictures: The victims of the Orlando shooting Tevin Eugene Crosby This undated photo shows Tevin Eugene Crosby, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Jonathan Antonio Camuy-Vega This undated photo shows Jonathan Antonio Camuy Vega, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Rodolfo Ayala-Ayala This undated photo shows Rodolfo Ayala-Ayala, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Leroy Valentin Fernandez This undated photo shows Leroy Valentin Fernandez, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Instagram via AP) AP In pictures: The victims of the Orlando shooting Christopher Andrew Leinonen This undated photo shows Christopher Andrew Leinonen, right, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. The man at left is unidentified. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Angel L. Candelario-Padro This undated photo shows Angel L. Candelario-Padro, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Simon Adrian Carrillo-Fernande This undated photo shows Simon Adrian Carrillo Fernandez, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Christopher Joseph Sanfeliz An undated photo from the Facebook account of Christopher Joseph Sanfeliz, who police identified as one of the victims of the shooting massacre that happened at the Pulse nightclub of Orlando, Florida, on June 12, 2016. Christopher Joseph Sanfeliz via Facebook/Handout via REUTERS ATTENTION EDITORS - THIS IMAGE WAS PRIVIDED BY A THIRD PARTY. EDITORIAL USE ONLY. NO RESALES. NO ARCHIVE. REUTERS In pictures: The victims of the Orlando shooting Javier Jorge-Reyes This undated photo shows Javier Jorge-Reyes, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Gilberto Ramon Silva-Menendez This undated photo shows Gilberto Ramon Silva Menendez, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Juan P. Rivera-Velazquez This undated photo shows Juan P. Rivera Velazquez, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Facebook via AP) AP In pictures: The victims of the Orlando shooting Miguel Angel Honorato This undated photo provided by Jose Honorato shows his brother Miguel Angel Honorato, center, one of the people killed in the Pulse nightclub in Orlando, Fla., early Sunday, June 12, 2016. A gunman wielding an assault-type rifle and a handgun opened fire inside the nightclub, killing dozens in the worst mass shooting in modern U.S. history. (Courtesy of Jose Honorato via AP) AP In pictures: The victims of the Orlando shooting Jean Carlos Mendez Perez An undated photo from the Facebook account of Jean Carlos Mendez Perez, who police identified as one of the victims of the shooting massacre that happened at the Pulse nightclub of Orlando, Florida, on June 12, 2016. Jean Mendez via Facebook/Handout via REUTERS ATTENTION EDITORS - THIS IMAGE WAS PRIVIDED BY A THIRD PARTY. EDITORIAL USE ONLY. NO RESALES. NO ARCHIVE. REUTERS In pictures: The victims of the Orlando shooting Mercedez Marisol Flores An undated photo from the Facebook account of Mercedez Marisol Flores, who police identified as one of the victims of the shooting massacre that happened at the Pulse nightclub of Orlando, Florida, on June 12, 2016. Mercedez Flores via Facebook/Handout via REUTERS ATTENTION EDITORS - THIS IMAGE WAS PRIVIDED BY A THIRD PARTY. EDITORIAL USE ONLY. NO RESALES. NO ARCHIVE. REUTERS In pictures: The victims of the Orlando shooting Xavier Emmanuel Serrano Rosado An undated photo from the Facebook account of Xavier Emmanuel Serrano Rosado, who police identified as one of the victims of the shooting massacre that happened at the Pulse nightclub of Orlando, Florida, on June 12, 2016. Xavier E. Serrano via Facebook/Handout via REUTERS ATTENTION EDITORS - THIS IMAGE WAS PRIVIDED BY A THIRD PARTY. EDITORIAL USE ONLY. NO RESALES. NO ARCHIVE. REUTERS In pictures: The victims of the Orlando shooting Anthony Luis Laureano Disla An undated photo from the Facebook account of Anthony Luis Laureano Disla, who police identified as one of the victims of the shooting massacre that happened at the Pulse nightclub of Orlando, Florida, on June 12, 2016. Anthony Laureano via Facebook/Handout via REUTERS ATTENTION EDITORS - THIS IMAGE WAS PRIVIDED BY A THIRD PARTY. EDITORIAL USE ONLY. NO RESALES. NO ARCHIVE. REUTERS In pictures: The victims of the Orlando shooting Franky Jimmy De Jesus Velazquez An undated photo from the Facebook account of Franky Jimmy De Jesus Velazquez, who police identified as one of the victims of the shooting massacre that happened at the Pulse nightclub of Orlando, Florida, on June 12, 2016. Jimmy De Jesus via Facebook/Handout via REUTERS ATTENTION EDITORS - THIS IMAGE WAS PRIVIDED BY A THIRD PARTY. EDITORIAL USE ONLY. NO RESALES. NO ARCHIVE. REUTERS In pictures: The victims of the Orlando shooting Oscar A. Aracena-Montero An undated photo from the Facebook account of Oscar A. Aracena-Montero, who police identified as one of the victims of the shooting massacre that happened at the Pulse nightclub of Orlando, Florida, on June 12, 2016. Oscar Aracena via Facebook/Handout via REUTERS ATTENTION EDITORS - THIS IMAGE WAS PRIVIDED BY A THIRD PARTY. EDITORIAL USE ONLY. NO RESALES. NO ARCHIVE. REUTERS In pictures: The victims of the Orlando shooting Luis Daniel Wilson-Leon An undated photo from the Facebook account of Luis Daniel Wilson-Leon, who police identified as one of the victims of the shooting massacre that happened at the Pulse nightclub of Orlando, Florida, on June 12, 2016. Lestat Wilson via Facebook/Handout via REUTERS ATTENTION EDITORS - THIS IMAGE WAS PRIVIDED BY A THIRD PARTY. EDITORIAL USE ONLY. NO RESALES. NO ARCHIVE. REUTERS In pictures: The victims of the Orlando shooting Martin Benitez Torres An undated photo from the Facebook account of Martin Benitez Torres, who police identified as one of the victims of the shooting massacre that happened at the Pulse nightclub of Orlando, Florida, on June 12, 2016. Martin Benitez via Facebook/Handout via REUTERS ATTENTION EDITORS - THIS IMAGE WAS PRIVIDED BY A THIRD PARTY. EDITORIAL USE ONLY. NO RESALES. NO ARCHIVE. REUTERS In pictures: The victims of the Orlando shooting Stanley Almodovar Facebook/Stanley Manolo Almodovar III In pictures: The victims of the Orlando shooting Eddie Justice Faebook/ Eddie Justice In pictures: The victims of the Orlando shooting Luis Vielma Twitter/@jk_rowling In pictures: The victims of the Orlando shooting Eric Ivan Ortiz-Rivera Facebook/ Eric Rivera In pictures: The victims of the Orlando shooting Juan Ramon Guerrero Facebook/ Juan Ramon Guerrero In pictures: The victims of the Orlando shooting Peter O. Gonzalez-Cruz Facebook/ Peter Gonzalez Cruz In pictures: The victims of the Orlando shooting Amanda Alvear Facebook/ Amanda Alvear In pictures: The victims of the Orlando shooting Anthony Disla Facebook/ Anthony Disla In pictures: The victims of the Orlando shooting Edward Sotomayor Twitter/@ryanraiche In pictures: The victims of the Orlando shooting Luis Omar Ocasio-Capo Facebook/Luis Omar Ocasio-Capo In pictures: The victims of the Orlando shooting Kimberley Morris Twitter/ ‏@katiezavadski

The remark followed a post with a picture of supreme court justice Sonia Sotomayer with a caption that read: “Reason enough why no country should ever engage in the practice of Affirmative Action again. This could be the result. Where would she be if she didn't hit the quota lottery? Here's a hint: 'Would you like to supersize that sir?’”

The prosecutor was temporarily reassigned and made to attend sensitivity training after the incident.

He apologized for both posts, according to the Associated Press, claiming he thought they would only be available to his Facebook friends.