I have created a Logic App that connects to an on premise file system. I have a data gateway setup and am successfully pulling a file from it, getting the file content, and creating a new file with its contents to a separate FTP connection. I want to delete the on premise file after the process, however I cannot get it working. I have tried using the delete file action and placing the 'list files' ID, Path, Name, DisplayName, etc. and no luck. It either says it cannot find the file, or when I choose Name, it says success but the file does not actually delete.
Here is the workflow:

Again, it only fails at the Delete File step, so I know it is not a connection configuration issue because I am already able to retrieve the file and the contents.
The strangest part is that the workflow completes successfully when the files dropped in the on premises folder have extensions of .txt -- the delete file action succeeds and the files are actually deleted; however, the files that I will need to be picking up are .csv, and this is when the Delete file action fails. Why is it that only the csv files encounter this issue? Any help would be much appreciated
Here is the error message I receive when it fails: