How to delete specfic excel file in folder

I need to delete the excel file starting with info name in folder.for example if the folder contains excel starting with info file name I need to delete it

Hi @sruthesanju

In for each give this and inside for each put delete activity,

Directory.GetFiles(“yourfolderpath”,".xl").Where(function(d) Path.GetFileName(d).ToUpper.Contains(“INFO”))


I ma unbble to find delete activity

What is .xl in code

it is a wildcard character, it can be xlsx,xlsm,xlsb or xls.


1 Like

try to update all the packages to latest version , if you cant find it then for deleteing i will try and alternate solution.

It’s working correctly

Have you able to find the delete activity.

If your issue is resolved please mark it as solution thanks

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.