Easy Tutorial
❮ Prop Expires Prop Line ❯

ASP Delete Method



The Delete method can delete a specified file or folder.

Note: If the specified file or folder does not exist, an error occurs. The Delete method for a folder with content is the same as for an empty folder. The specified folder is deleted regardless of its content. Applying the Delete method to a File or Folder object yields the same result as using FileSystemObject.DeleteFile or FileSystemObject.DeleteFolder.

Syntax

Parameter Description
force Optional. A Boolean value that indicates whether read-only files or folders can be deleted. True indicates that read-only files/folders can be deleted, false indicates that they cannot. The default is false.

Example for File Object

Example for Folder Object


❮ Prop Expires Prop Line ❯