Spoil the verb originally referred to taking something by force or theft, though this use would now be archaic. The later senses related to the damage such a theft would do. We have noun senses relating both to the materials stolen, and to something being damaged.
There are a few sayings relating to damage done to something just to render it useless to others, often (for obvious reasons) to military or legal operations.
"Salt the earth" literally means to put salt on someone's land. It was done both to defeated enemies, and to criminals. This was probably a symbolic or religious act (salt has long been held to have apotropaic qualities that would ward off present spirits, so it would erase the spiritual connection people had to that land). It was later understood as having been an attempt to poison the land so crops wouldn't grow. While this wouldn't work (you'd need far too much salt), it means that "salting the earth" has long been a metaphor for deliberate damage to render something unusable by an enemy.
If you wanted to salt the earth of a city, you might say "Carthago delenda est" or "Delenda est Carthago", literally "Carthage must be destroyed" which Cato the Elder would often end speeches with (even on other topics) during the Punic Wars. While this is Latin, not English, it has frequently been used in English either in the form given above, or with Carthago replaced with the name of your target (either in English or in Latin), to suggest that you intend not just to defeat someone, but to utterly destroy them and all that they have.
A "scorched earth policy" is a policy of deliberate damage, much as "salting the earth" was falsely believe to be. It has a literal history from ancient times through to conflicts being fought now. Likewise, its metaphorical use is understood.
Scuttling is deliberately sink a ship, most often to render it useless to someone who is about to capture it. On rarer occasions it can be to make a harbour or waterway inaccessible (there were five Viking ships in Roskilde Fjord that were clearly scuttled on top of each other to block access), and sometimes both (a thousand years but just thirty kilometers away, the Danish navy scuttled much of their fleet that couldn't escape capture both to keep the ships and the port from being used by the Kriegsmarine). Here again, you can use this word metaphorically, though it isn't as common.
One that's similar to these in their literal senses, but not an appropriate metaphor is "burn your bridges". While this has been done by retreating forces to prevent their use by the enemy, it has a well establish metaphorical sense that concentrates on the fact that doing so means you can't go back, so using it for the sense you want wouldn't work.