Name of the deployment preview error
Cannot delete flow
Sample error message
Cannot delete flow via metadata API. Flow name: salesforce.flow.instance.my_flow
When will I see this deployment preview error?
This error occurs when you select a flow for deletion in a deployment.
Salesforce does not allow deleting record types through the API, and it's a documented known issue. Attempting to delete a flow through the API would result in the following error
insufficient access rights on cross-reference id
For example, this error is returned when we attempt to delete a flow through the sfdx CLI
How does this affect my deployment?
The selected flow will be skipped, and the deletion will not be attempted.
How can I fix this error?
Delete the flow manually in the target org.
You can learn more about deployment preview errors here.