Forum Discussion

Former_Member's avatar
Former_Member
Accelerator III
8 years ago

How to delete workflow process?

We have thousands of open workflow processes, years old, from early days of implementation. Even with admin rights, we can't seem to purge these things. Attempting to delete an instance gives us an error;: Workflow Process cannot be deleted. It is used in Worfklow related_id 8EE630D7C2D543..... This reference is pretty useless, at best inconvenient. Is there a way to purge and to hell with any relationships? The org has stopped using workflows completely just because there is so much junk in the system that they can't get rid of.

3 Replies

  • Hello, We can create an Action which will delete the relationships as well as Workflow Process. If you need any help for the same please let me know.
  • Can you share the sample code for this action if you have handy?
  • Hello, We have to develop the code for this action. If you need any help for the same please let me know.