In multiple episodes throughout the series the self-destruct is mentioned, and we actually saw it used in Star Trek III The Search for Spock. So here's my question, if they have explosives stashed all over the ship in strategic places to blow it up, how come in all their many battles it was never set off when they were fired upon and hit?