Delete Method (WebFiles) Example

This statement deletes a file in the active web.

Note   To run this example, you must have a file called "C:\My Documents\My Webs\TempFile.htm" (for a server running on Microsoft Windows) or "C:\WINNT\Profiles\logon alias\Personal\My Webs\TempFile.htm" (for a server running on Windows NT). In either case, you may substitute an alternative web file.

ActiveWeb.RootFolder.Files.Delete "TempFile"