Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 63 Insurance
- 535.7K On-Premises Infrastructure
- 138.1K Analytics Software
- 38.6K Application Development Software
- 5.6K Cloud Platform
- 109.3K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71K Infrastructure Software
- 105.2K Integration
- 41.5K Security Software
How to delete multiple files using file adapter

Hi All,
We are using SOA11g, and the requirement is to delete all the files inside a directory, which are of a particular format.
For ex. we need to delete all files ending with .pdf.
I have gone through:
Biradar ShriKant Oracle SOA Blog: File / FTP Adapter SOA - COPY / MOVE / DELETE Operation
https://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#TKADP2109
but these documents talks about deleting single file,
I tried below pattern but no luck
<property name="TargetFileName" value="*.pdf"/>
<property name="TargetFileName" value="*\.pdf"/>
<property name="TargetFileName" value=".*\.pdf"/>
<property name="TargetFileName" value="*"/>
How can I achieve this requirement?, is there any other property available which will look for pattern for target file, like TargetFileNamingConvention or TargetIncludeFiles?
Regards,
Bob
Answers
-
Hi mate,
I'm not aware of any property that will look for wildcard patterns... A possible solution to achieve your requirement is to use a "list" operation and then iterate to delete the files one by one...
Cheers,
Vlad