cancel
Showing results for 
Search instead for 
Did you mean: 

BLS Delete File Action Block

sidnooradarsh
Contributor
0 Kudos

Hi,

In Delete File Action block we supply the

Path which includs FileName to be deleted.

for example i am supplying this way:

C:/Lighthammer/Test/Filename.txt

This is straight forward and works fine.

But I want to delete any file having Extension *.txt

i.e. without specifying the filename.

I will provide Path and filename as *.txt. My intention is to delete any file with txt extension.

I am supplying path like this:C:/Lighthammer/Test/*.txt

How to perform this. Please provide me solution.

Regards,

Adarsh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Adarsh,

I dont this that it will be possible to delete the files with the way you have mentioned.

Work aroun will be to use GetFileList Action and there you put a filter to get only the .txt files. And now put a repeater on that use the Delete File Action.

Hope this helps

Regards

sidnooradarsh
Contributor
0 Kudos

Hi Rupesh,

I have already done that way what you have suggested.

But, I just wanted to know is there any shortcut way of doing it just by using Delete File action block.

Thanks & Regards,

Adarsh