SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a way to programmatically reset a page to that page's site/feature definition, without using SharePoint Designer. There must be some sort of API that can do this, but my Googling around is coming up empty...

share|improve this question
up vote 3 down vote accepted

SPFile.RevertContentStream() is what you're looking for. Remember this will only work when the file really does have an uncustomized version on the file system though.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.