Delete folder containing files and sub folders

Hi

Could anyone help me
“How to delete entire files and folders in specified directory”,
Using which activities we can do it??

1 Like

You can use Delete activity. This will delete the folder which you mentioned and all sub folders and files.
For ex:-
If you provide path as “D:\Temp”. It will delete “Temp” folder and all its sub folders and files.

Check this out.

https://forum.uipath.com/t/how-to-delete-multiple-files/2857/12

@krishna46111 Attached file meets your requirement In a folder it deletes the file and also deletes the sub folders

DeleteFile.zip (2.7 KB)