Hi Experts,
I want to unregister all plugins programmatically (Example: Plugin name start with Test.Plugins).
Do we need to delete all plugins steps (programmatically) before unregister plugin assembly? Please help me to do this.
Please share any URL for the same.
Thanks in advance.
Hi Shivaram,
I have tried to delete Plugin Assembly directly but it says dependencies needs to be deleted before deleting Assembly .
We need to delete sdkmessageprocessingsteps and then plugin assembly.
1. sdkmessageprocessingsteps
2. plugin assembly
Thanks,
Seeni
Hi Senni,
Plugin Assembly usually wont have any dependencies with entities or forms unlike Workflow Assembly. So you can proceed unregister Assembly even though you have Plugin Types under Assembly.
Shivaram.
Hi Bipin Kumar,
Thanks for your response.
you are correct. But, I did deleted sdkmessageprocessingsteps and plugin assembly programmatically and did not deleted plugintypes. Is that okay to skip this? or Do we need to delete plugintypes as well before deleting plugin assembly. Please confirm.
Thanks.
Hello,
Please check below blog which talks about registering steps and images using c#.
sank8sinha.wordpress.com/.../
You can do reverse engineering and try to delete records in below order from c# code -
sdkmessageprocessingsteps
plugintypes
plugin assembly
You can always use advanced find to fetch any of the above mentioned entity record based on filter condition then download the fetch xml and use it in your console application.
Please mark my answer verified if this is helpful!
Regards,
Bipin Kumar
Follow my Blog: xrmdynamicscrm.wordpress.com/
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Rishabh Kanaskar 258
MVP-Daniyal Khaleel 184
Tom_Gioielli 126 Super User 2025 Season 2