Delete file by using invoke code?

I want delete file by using invoke code.

Now I use code for remove file in folder variable = path2
If I want to remove more folder in this code.

image
image

How to edit code?

@Maria99 - could you please give the folders structure or show a screenshot of the folders you would like to delete?

@prasath17 I want to delete file in folder Suspend and Terminate.

image

@Maria99 - Here you go…

 array.ForEach(Directory.GetDirectories("YourFolderName"),sub(x) Directory.Delete(x,true))

YourFolderName = You can give the folderpath upto ‘input from Sys’

1 Like

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