We are using the D_pxGetFile API to retrieve the File from Azure and validating the File Size and other File Properties.
After the operations are completed, the Data Page is Flushed using OOTB activity.
When this operation is used in Post Activity of a Flow action, we are observing that the Files after validation cannot be deleted. File Handle open issue is reported on the Azure side and the Files are removed from Pega but locked and cannot be deleted from Repository.
Azure team states that the Lock or the Lease on the File is still held by the Application and hence the issue.
***Edited by Moderator Marije to add Capability tags***