Reading the lean startup at the moment. I can really sympathise with Ries when he has to throw the cool IM interoperability code away.
I know you shouldn't be precious over code but it's still hard. I'm doing a load of fixes and refactoring at the moment and there's code that just isn't needed any more. But! I wrote it! AND the way I did certain things, whilst no longer needed or not quite right were very clever in thier own right. Being a hoarder I have captured various things in snippets for the future. This is very similar to my non virtual life. I have thousands of wires, books, computers and general bits and bobs that I may never look at again but keep just in case.
Maybe I should just be brave and do away with them?