I have created a custom action using Element.xml and deployed via Web Application level scope Feature. Now the custom actions are available in almost 3000 sites under that web application. Business wants to remove these custom actions across all sites.

How to remove these existing custom actions from 3000 sites? Will retracting feature deletes all these custom actions?


Do I need to write a Utility (Poweshell or Object Model Code) to delete these custom actions?

Please suggest to correct approach.

  • 1
    Do not retract the solution without deactivating the feature as this will create orphan features in your content databases. Use PowerShell to loop through all the site collections in your web application and deactivate the feature, and then uninstall and remove the solution from your farm. – Christoffer Jul 11 '17 at 7:23
  • Christoffer, If I uninstall the feature in all the sites using PS (as you said above), will it remove the existing Custom Actions? – Althaf Shaik Jul 11 '17 at 7:28
  • Yes. If you deactivate the feature, it will remove custom action. – Dikesh Gandhi Jul 11 '17 at 7:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.