- You may be looking for Zanak IV.
Zanak was a planet with green fields, lush vegetation and friendly, humanoid natives. It was quite prosperous until the reign of Queen Xanxia. The queen launched galactic wars to demonstrate her powers, which ultimately ended up devastating Zanak, leaving only only a few nomadic tribes alive.
Later, the Captain crash-landed on Zanak in his ship, the Vantarialis. He hollowed out the planet, which, using powerful engines, could materialise itself around other planets and steal their mineral wealth. It would then crush the planets into small, compressed cores. The Captain ruled from a mountain fortress known as the Bridge. He, in turn, answered to Xanxia, who had recreated him in his current cyborg form. Xanxia had gutted her entire planet to provide the power needed to control the time dams that kept her body frozen in its last few seconds of life. Her consciousness was then projected into a new, virtually-generated body in the form of the Captain's nurse.
The Captain destroyed many planets with Zanak, including Bandraginus V, Tridentio III, Granados, Temesis, Lowiteliom, Bibicorpus, Aterica, Discurus, and Qualactin. Publically, this transition allowing Zanak to draw on the mineral wealth of these worlds, but they also served the purpose of draining these planets of energy that Xanxia could use to maintain the time dams.
The Fourth Doctor visited Zanak and helped the Mentiads overthrow the Captain and Xanxia. The Bridge was destroyed, allowing Zanak to settle in the position that had once been occupied by the planet Calufrax. Its interior mass was replaced by the remnants of the planets (with the exception of Calufrax) that Zanak had destroyed, which the Captain had preserved as part of a plan to destroy Xanxia. (TV: The Pirate Planet)
In 2009 K9 Mark IV told Clyde Langer about "a hollow world called Zanak", which was a pirate planet. Clyde learned that the planet jumped through space around other planets and drained them dry. (PROSE: The Wedding of Sarah Jane Smith)