Deleting a nested virtual directory with Web.WebSite.DeleteVirtualDirectory

Mar 18, 2008 at 10:20 PM
I have a system that requires the deletion of nested virtual directories, while keeping the root virtual along with the other nested virtuals untouched. For example:

Site/RootVirtual/Virtual1
Site/RootVirtual/Virtual2
Site/RootVirtual/Virtual3

I'm able to successfully delete the root virtual directory with the following:
<Web.WebSite.DeleteVirtualDirectory VirtualDirectoryName="RootVirtual" />

However, when I attempt to delete 'Virtual1' using the following, the virtual remains and I receive no output.
<Web.WebSite.DeleteVirtualDirectory VirtualDirectoryName="RootVirtual/Virtual1" />

Has anyone else attempted to do something like this? Any help would be appreciated.
Developer
Mar 19, 2008 at 12:07 PM
Nested Virtual Directories are not currently supported. Something that should be added in a future release I expect.