WEST PALM BEACH, Fla. — President Trump would not commit in an interview aired Sunday to making public the results of the special counsel’s investigation into Russia’s ties to his campaign, adding that it was time to “get rid” of the inquiry.

In the interview on CBS’s “Face the Nation,” Mr. Trump reiterated his belief that the attorney general would determine whether the public would see the results of the inquiry by the special counsel, Robert S. Mueller III. But he would not say whether he would be comfortable with the results being made public.

“I don’t know,” the president said. “It depends. I have no idea what it’s going to say.”

The law does not require the Justice Department to release a report, and Mr. Mueller has been silent on the issue. Last month, Trump advisers were pleased that William P. Barr, Mr. Trump’s nominee for attorney general, opened the door to the possibility that the special counsel’s report could be shielded from the public during a Senate confirmation hearing.

Mr. Trump’s wide-ranging interview with Margaret Brennan, the show’s host, was conducted days after the acting attorney general, Matthew G. Whitaker, said the investigation was nearing its end, and amid stagnant negotiations with Democrats over Mr. Trump’s demand for a border wall. Mr. Trump indicated at various points in the interview that he would use the power of his office to solve that matter and others facing his presidency.