This project is read-only.

Deleting a nested virtual directory with Web.WebSite.DeleteVirtualDirectory

Mar 18, 2008 at 11: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:


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.
Mar 19, 2008 at 1:07 PM
Nested Virtual Directories are not currently supported. Something that should be added in a future release I expect.