Does anyone know how to "reset to site definition" programmatically?
I found the answer.SPweb.RevertAllDocumentContentStreams()It will un-ghost all pages of that site.