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

as I am trying to wrap my head around silverlight and sharepoint there's one thing I find most irritating: Provisioned xap-Files and/or web-Parts remain fully active upon deactivation/uninstallation of the feature that originally provided them...

So the question is: What is a good practice: To remove those files (using a featureReceiver) on deactivation or on uninstallation or not to remove them at all?

share|improve this question
up vote 1 down vote accepted

If a feature is Deactivated, it means its not being used in the particular scope it is defined. Always the best practice would be to revert the actions that are done while activating the feature.

In your case, removing the files with an Event Receiver for Feature deactivation would be the best approach. This would also help in improving the site performance.

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.