It would be great if there were a boolean value to bypass a shared lock for SharePoint files. Whenever I am trying to delete a file, and someone has it open, an error is thrown. I know there is risk to deleting files with locks (data loss), but I am trying to delete read only files, so this is not an issue.
I have found a workaround using the Microsoft 365 http request. There is a ‘prefer’ header using the value of ‘bypass-shared-lock’ to force an overwrite. I previously caught this error and would try again at a later time, but this was not a clean solution.
It would be great if the delete activity had this as a boolean argument, and the upload file activity had a force-overwrite for conflict behavior.