Delete file from Outbox folder
Summary:
The file extract (Applicationname_1234.dat) is generated under Outbox folder. "1234" is Process ID. I am able to successfully rename the file while uploading it to Object Storage using pipeline. However, when I am rerunning the extract, file extract is generated with file naming convention as (Applicationname_5678.dat) where "5678" is Process ID. Now while uploading this new file to Object Storage using pipeline, the pipeline job fails to understand which file it has to rename ( Applicationname_1234.dat or Applicationname_5678.dat) and it fails.
I tried deleting the first file (Applicationname_1234.dat) under Outbox folder using epmautomate command triggered via groovy script. Filename I provided is as ApplicationName_*.dat. But epmautomate command deletefile is not able to recognize wildcard names.