How to delete all the data inside the folder

Heyy,
I have different types of folder inside that folder different types of data
and i want to delete that data through the bot
give me the suggestions or idea to do that

1 Like

Hi @kailas_jadhav

use Directory.getfiles("yourfullfilepath") in for each activity.

Then use delete file activity inside the body of the loop and delete the files!

Regards

1 Like

Hi @kailas_jadhav

Delete the folder using delete activity and create the folder using create folder activity.

Thanks

1 Like

@kailas_jadhav Please do no ask questions that are already on forum.

Search forum first and if you could not find answers then only post those questions.

Look if you are intrested to give me idea then okay

Hi @kailas_jadhav

You can delete all the files using a single line of code check it below link

How to delete multiple files - Help - UiPath Community Forum

1 Like