function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
michael ofodilemichael ofodile 

Is there a way to mass delete inactive workflow rules

I am working on cleaning up our Org and we have a ton of inactive workflow rules that need deleting. 
Alain CabonAlain Cabon
@michael ofodile

You will need to retrieve the metadata files (xml) of your workflow rules to get their names and then after, you have to deploy destructive changes.

destructiveChanges.xml
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy_deleting_files.htm

workflow rule (metadata)
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_workflow.htm

The easiest tool for that is the workbench.
https://workbench.developerforce.com/metadataRetrieve.php
https://workbench.developerforce.com/metadataDeploy.php
rishabh rathor 28rishabh rathor 28
You can use Bulk Object Field Creator application to Delete Multiple Workflow Rules Of Multiple Objects (for any Standard or Custom Object) in a few clicks.
Here's the link to watch how ? - https://www.youtube.com/watch?v=lq0cbXzY-80