How do I remove a building in StarCraft 2?
How do I sell back a completed building I don't need in the StarCraft 2 campaign?
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
With the exception of the Bunker, you can't.
The Bunker has a salvage (v by default) command; you must empty it of troops first.