I know there is the Delete File activity, but it only works for one file at a time. I want to be able to select the directory and delete all files in it. I haven’t found an actvity that does that. So far the only solution I ahve found is to use List diretory files and then creating a counter that deletes one file at a time as long as the counter is less than the number of files in the directory.
I’ve tried using the del * command to delete all files from the folder, but I’m getting an error because the system asks me if I’m sure I want the files to be deleted and I don’t know how to use command prompt activity to answer ‘yes’.