An appeals court yesterday slammed the brakes on reputed Gambino boss Peter Gotti’s bid to get out of solitary confinement.

The accused Mafia don – whom the feds have fingered in an alleged plot to kill the late John Gotti’s prison warden – was on the verge of re-entering the general population at Brooklyn’s Metropolitan Detention Center, thanks to a favorable ruling Tuesday by a federal judge, when the 2nd U.S. Circuit Court of Appeals intervened.

Gotti, John’s brother, has been in “the hole” since mid-August. The appeals court ruled he must stay there at least until it hears the case on Sept. 17.