Wrecks, abandoned ships, and many things you build can be salvaged for part of their cost. See the full list of salvageable object types.
A Manufacturer costs 20 Territe and salvages for 10 Territe. Right click, then Salvage. On a busy object the option can sit at the bottom of the menu. The salvage beam takes several ticks to finish.
Each finished salvage cycle removes 10 HP. An Asteroid Ship will not vanish on the first cycle. You can pull a lot from it.
Hard wrecks have several possible outputs. Some are easy, some are rare. If your salvaging skill is low, you can miss the valuable chunk in that cycle. Complexity applies here too.