They have a nice document on their intentions of recovering and scrapping ships. So you'll need to EVA over first and remove modules, ammo, cargo, and attachments before you scrap the ships skin and hull. In fact, repairing works kind of similar in reverse.