Removes the Web object from the specified WebFolder object.
Syntax
expression.RemoveWeb([UserName As String], [Password As String])
expression An expression that returns a WebFolder object.
UserName Optional String. The logon name of the user.
Password Optional String. The password of the user.
Return Type
Void
Remarks
The RemoveWeb method is the complement of the MakeWeb method. Just as the MakeWeb method creates the meta data for the web from a folder, the RemoveWeb method removes the meta data for the web from a folder, but the folder remains intact. This is different from the Delete method for the Web object, where the entire contents of the specified web are removed.