When trying to delete a Salesforce Flow, users might receive the following error message:
"An internal server error has occurred. The salesforce.com support team has been notified of the problem."
Error ID: 22257339-28606 (-1139067395) Or 1119564065-46408 (-1139067395)
This error typically indicates that there are failed Flow interviews referencing the Flow version being deleted. As long as these interview records exist, Salesforce prevents the deletion of the associated flow metadata.
To resolve the "An internal server error as occurred" when trying to delete a Salesforce Flow, perform the following steps:
2. Delete all associated Paused and Failed interview references (either manually or via a data tool like SOQL, Workbench, or Data Loader).
3. Once all paused and failed interview references are removed, retry deleting the Flow.
4. The Flow should now delete successfully without triggering an internal server error.
005227822

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.