There have been one or two. It’s hard to convince the business to spend money on a complete rewrite (the cost of six months of work just to get back to (visually) sqaure one is a tough one to sell) but the first ever high profile project I worked on was a total rewrite jobbie. It was all the better for it :)