Share via


Webs.Delete Method

SharePoint Designer Developer Reference

Closes an open Web site and deletes the entire Web site from the file system or removes FrontPage metadata from the Web site.

Syntax

expression.Delete(Index, Mode)

expression   Required. A variable that represents a Webs collection.

Parameters

Name Required/Optional Data Type Description
Index Required Variant Variant. Refers to an item in the Webs collection. Can be any number corresponding to an item in the collection, with the index starting at zero.
Mode Optional WebDeleteMode Determines what is deleted from the current Web site. Default is WebDeleteEntireWeb.

See Also