Code to delete directory

Code to delete the directory

1 Like

@Sweety_Girl - Can you please check below

1 Like

I need a invoke code to delete the directory

Hi @Sweety_Girl
If you know the path of directory Then You can Use Delete Activity. you just have to provide the path to activity.

1 Like

If you want to delete the entire folder, use this @Sweety_Girl

directory.Delete("")

2 Likes

@Sweety_Girl
you want to delete Directory using Invoke Code then Provide Target Type as System.IO.Directory.Delete and Method Name as Delete and give the Folder Path in the collection Parameter.

1 Like

Delete activity also deletes the entire folder right?

Yes you need to provide path of the directory.

1 Like

Yes, that Directory.Delete deletes the entire folder path which you gave in the property @Sweety_Girl

1 Like

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