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

How to retract a sharepoint solution without having remaining list intances, workflows, data etc?

share|improve this question
up vote 5 down vote accepted

It is by-design that retract doesn't remove actual data. There is no event handler either that you could use to remove content after solution has been retracted. :(

I guess you would need to create custom functionality that will clear old content and run it after retracting solution.

Would it be possible to use site collections for this, and then just delete the whole site collection when needed?

share|improve this answer

There is an event handler on the feature that is triggered on deactivate, which you could remove lists then. But that would require the features to be deactivated before retraction.

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.