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 deployed page via module. Module is deployed via feature (method FeatureActivated). After that process page is deployed in content database.

What I need is to be able to delete (remove) page from database after feature deactivation (method FeatureDeactivating) For now, I can't see any page collection properties in my web to be able to get and delete my page from it. I assume that this is maybe possible to do via PowerShell or CA, but I need to do that from VS.

Please, any suggestion!

share|improve this question
up vote 4 down vote accepted

I think you should check this:

Removing Provisioned Files from SharePoint During Feature Deactivation

share|improve this answer
Dobro misliš Vedrane :) This is solution for problem. Thank you! – trip Sep 9 '11 at 13:28

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.