PDA

View Full Version : Deleting a Directory


HippyCraig
11-14-2007, 01:47 PM
I am tried to use both the delete files and delete directroy actions and I am having a little trouble. I want to delete the contents and all sub directorys but leave the root directroy intact.

Is there a way to do this.

Thanks,
Craig

kinook
11-14-2007, 01:55 PM
Recreate the root folder afterwards using the Create Folder action.

HippyCraig
11-14-2007, 01:57 PM
I cant remove that directory as IIS is pointing to it. is there another option

kinook
11-14-2007, 02:04 PM
Then it should do what you want (delete all files/subfolders except the root folder if IIS is preventing that) -- just mark it to ignore failure. Or stop the IIS service if it's preventing files or subfolders from being deleted.

Shiamak
02-03-2011, 07:54 PM
How do you stop IIS?

kinook
02-04-2011, 10:21 AM
http://support.microsoft.com/kb/202013