Deletion of flow metadata through destructive changes not supported

Platform / Lightning Flow
In Review

Created

Feb 7, 2022

Found in Release

Winter '22

Last Updated

Jun 10, 2024

Reference ID

W-10538057

Summary

Deleting flows through destructive changes is not supported , while performing this operation will get an error -
"insufficient access rights on cross-reference id "

Steps to Reproduce

a). In any Org, create a flow named "ScheduledTest" with at least 2 versions.
Use the following package.xml and destructiveChanges.xml files and zip them together.
destructiveChanges.xml






ScheduledTest

Flow





package.xml




53.0




b). This fails with "insufficient access rights on cross-reference id " error when you try to deploy it through MD API tool as a single package.

Workaround

If you change the contents of destructiveChanges.xml and provide flow version like "ScheduledTest-1", the flow version is successfully deleted.
Reference IDW-10538057
In Review

146 Reports

146 Reports