Those who have tried Uninstalling Microsoft Portals or ADX portals are well aware it is extremely painful task. It will be even more painful if the Portal customizations done are no managed properly in a solution.
I had to do this task recently, for my learning as well as a POC, and below are the steps I did.
I have performed the below steps myself and these is what I done to uninstall the solution successfully.
When installing CRM Portal, multiple CRM solutions get imported. Some of the solutions include Core portal features and others include specific functionality (i.e. Customer Portal or Employee Self Service). When installing the solutions, the core solutions gets installed first and then the specific ones. Once installed, you may then have done customisations to the portal solution.
To uninstall we need to follow the steps in reverse order:
For example, for a Customer Service portal, uninstall below solutions first.
[This is why it is necessary to have all portal customizations in a single place]
[Special Note – This solution Contains a Custom Workflow which is used in Dialogs for Portal – for Change password and other workflows. It will show in Dependencie when you delete, I manually removed the dialog steps to uninstall]
[NOTE – I referred this from a Dynamics Forum answer, I had pasted in a notepad. Unfortunately I could not find the forum answer again to credit the person. In any case, I have updated the steps based on what I encountered.]