web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

How to Unregister Plugins programmatically in Dynamics 365 CRM using c#

(0) ShareShare
ReportReport
Posted on by 307

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.

I have the same question (0)
  • Seenivasan M Profile Picture
    307 on at
    RE: How to Unregister Plugins programmatically in Dynamics 365 CRM using c#

    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

  • Suggested answer
    shivaram Profile Picture
    3,315 on at
    RE: How to Unregister Plugins programmatically in Dynamics 365 CRM using c#

    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.

    Thanks,

    Shivaram.

  • Seenivasan M Profile Picture
    307 on at
    RE: How to Unregister Plugins programmatically in Dynamics 365 CRM using c#

    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.

  • Verified answer
    Bipin D365 Profile Picture
    28,983 Moderator on at
    RE: How to Unregister Plugins programmatically in Dynamics 365 CRM using c#

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 184

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 126 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans