“#NYPD vehemently opposes this bill. It provides terrorists, criminals & others with a roadmap on how to harm #USA,” the top cop wrote in response to Trump Jr.’s tweet, according to a screenshot obtained by the Staten Island Advance.

O’Neill scrubbed the retweet from his social media account in less than 10 seconds and later replaced it with another post that doesn’t quote Trump Jr.

“The earlier tweet was a draft, that was unintentionally tweeted. The NYPD’s opposition to this legislation has not changed,” NYPD spokesman J. Peter Donald said in a statement.

President Trump’s eldest son had tweeted about the City Council bill, which would require the NYPD to publish reports on what kinds of spy equipment police use, on Thursday evening.

“Of all the stupidity I’ve seen as of late this takes the cake. Let’s tell terrorists what we are doing so they can succeed at killing us!?!?” he wrote.